Home | History | Annotate | Download | only in nettest

Lines Matching refs:Write

69 			t.Errorf("unexpected c1.Write error: %v", err)
120 if _, err := c.Write(buf); err != nil {
121 t.Errorf("unexpected Write error: %v", err)
135 if _, err := c1.Write(make([]byte, 8)); err != nil {
136 t.Errorf("unexpected c1.Write error: %v", err)
168 // testRacyWrite tests that it is safe to mutate the input Write buffer
185 _, err := c1.Write(b1)
196 // testReadTimeout tests that Read timeouts do not affect Write.
203 if _, err := c1.Write(make([]byte, 1024)); err != nil {
204 t.Errorf("unexpected Write error: %v", err)
208 // testWriteTimeout tests that Write timeouts do not affect Read.
213 _, err := c1.Write(make([]byte, 1024))
221 // Read and Write requests.
228 n, err := c1.Write(make([]byte, 1024))
230 t.Errorf("unexpected Write count: got %d, want 0", n)
243 // Read and Write operations immediately times out those operations.
272 _, err = c1.Write(make([]byte, 1024))
276 t.Error("Write timed out before deadline is set")
282 // Read and Write operations.
297 _, err = c1.Write(make([]byte, 1024))
309 // Read and Write operations.
337 _, err = c1.Write(buf)
361 c1.Write(make([]byte, 1024))
411 if _, err := c.Write(buf); err != nil {
412 t.Errorf("roundtrip Write error: %v", err)
429 _, err := c.Write([]byte{0xff})
444 t.Errorf("unexpected Write error: %v", err)
449 // causing a Write that exceeds the maximum packet size for packet-based