1
0
mirror of https://github.com/golang/go synced 2024-11-24 08:40:14 -07:00

net: in TestNotTemporaryRead, reject io.EOF on platforms other than plan9

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>
This commit is contained in:
Bryan C. Mills 2022-02-14 16:07:05 -05:00 committed by Bryan Mills
parent 690ac4071f
commit 67d6a51065

View File

@ -549,9 +549,7 @@ func TestNotTemporaryRead(t *testing.T) {
if runtime.GOOS == "plan9" { if runtime.GOOS == "plan9" {
return return
} }
// TODO: during an open development cycle, try making this a failure t.Fatal("Read unexpectedly returned io.EOF after socket was abruptly closed")
// and see whether it causes the test to become flaky anywhere else.
return
} }
if ne, ok := err.(Error); !ok { if ne, ok := err.(Error); !ok {
t.Errorf("Read error does not implement net.Error: %v", err) t.Errorf("Read error does not implement net.Error: %v", err)