nettest: skip known failure mode of TestTestConn/TCP/RacyRead on windows/arm64

For golang/go#52893.

Change-Id: Icb8ec3512608ec7f7fcdafc62161bc836c84605b
Reviewed-on: https://go-review.googlesource.com/c/net/+/412137
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Bryan C. Mills
2022-06-14 14:44:54 -04:00
committed by Gopher Robot
parent c690dde000
commit fb05da6f90

View File

@@ -398,7 +398,11 @@ func checkForTimeoutError(t *testing.T, err error) {
t.Helper()
if nerr, ok := err.(net.Error); ok {
if !nerr.Timeout() {
t.Errorf("got error: %v, want err.Timeout() = true", nerr)
if runtime.GOOS == "windows" && runtime.GOARCH == "arm64" && t.Name() == "TestTestConn/TCP/RacyRead" {
t.Logf("ignoring known failure mode on windows/arm64; see https://go.dev/issue/52893")
} else {
t.Errorf("got error: %v, want err.Timeout() = true", nerr)
}
}
} else {
t.Errorf("got %T: %v, want net.Error", err, err)