Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reader/conn_read_cancel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestConnReadN_ReturnsPartialDataOnCancel(t *testing.T) {
if err != nil {
return
}
defer c.Close()
defer func() { _ = c.Close() }()
_, _ = c.Write([]byte("hi")) // send partial data, then stall
_, _ = io.Copy(io.Discard, c) // block until the client closes
}()
Expand Down
Loading