Skip to content

Commit

Permalink
net: in TestNotTemporaryRead, reject io.EOF on platforms other than p…
Browse files Browse the repository at this point in the history
…lan9

Updates #29685

Change-Id: Id8dca078213942666871ac8ded663326e98427fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/385754
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
  • Loading branch information
Bryan C. Mills committed Apr 1, 2022
1 parent 690ac40 commit 67d6a51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/net/net_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,7 @@ func TestNotTemporaryRead(t *testing.T) {
if runtime.GOOS == "plan9" {
return
}
// TODO: during an open development cycle, try making this a failure
// and see whether it causes the test to become flaky anywhere else.
return
t.Fatal("Read unexpectedly returned io.EOF after socket was abruptly closed")
}
if ne, ok := err.(Error); !ok {
t.Errorf("Read error does not implement net.Error: %v", err)
Expand Down

0 comments on commit 67d6a51

Please sign in to comment.