(t *testing.T, conn *Conn)
| 388 | } |
| 389 | |
| 390 | func testConnCloseAndWrite(t *testing.T, conn *Conn) { |
| 391 | conn.Close() |
| 392 | |
| 393 | _, err := conn.Write([]byte("Hello World!")) |
| 394 | |
| 395 | // expect a network error |
| 396 | var netOpError *net.OpError |
| 397 | if !errors.As(err, &netOpError) { |
| 398 | t.Error(err) |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | func testConnSeekFirstOffset(t *testing.T, conn *Conn) { |
| 403 | for i := 0; i != 10; i++ { |