From: Bryan C. Mills Date: Wed, 5 Jan 2022 19:20:30 +0000 (-0500) Subject: net/http: skip TestClientTimeout_h{1,2} on windows/arm and windows/arm64 X-Git-Tag: go1.18beta2~166 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=88cafe0f58cf7374722a2a98d8919c32bb8795e5;p=gostls13.git net/http: skip TestClientTimeout_h{1,2} on windows/arm and windows/arm64 These tests are empirically flaky on the windows/arm and windows/arm64 builders, with a consistent (but rare) failure mode. This change skips the test if that particular failure mode is encountered on those platforms; the skip can be removed if and when someone has the time to pin down the root cause. For #43120 Change-Id: Ie3a9a06bf47e3a907c7b07441acc1494a4631135 Reviewed-on: https://go-review.googlesource.com/c/go/+/375635 Trust: Bryan Mills Run-TryBot: Bryan Mills Reviewed-by: Damien Neil TryBot-Result: Gopher Robot --- diff --git a/src/net/http/client_test.go b/src/net/http/client_test.go index c2ea6f4330..ea59f68f35 100644 --- a/src/net/http/client_test.go +++ b/src/net/http/client_test.go @@ -13,6 +13,7 @@ import ( "encoding/base64" "errors" "fmt" + "internal/testenv" "io" "log" "net" @@ -21,6 +22,7 @@ import ( "net/http/httptest" "net/url" "reflect" + "runtime" "strconv" "strings" "sync" @@ -1289,6 +1291,9 @@ func testClientTimeout(t *testing.T, h2 bool) { t.Errorf("net.Error.Timeout = false; want true") } if got := ne.Error(); !strings.Contains(got, "(Client.Timeout") { + if runtime.GOOS == "windows" && strings.HasPrefix(runtime.GOARCH, "arm") { + testenv.SkipFlaky(t, 43120) + } t.Errorf("error string = %q; missing timeout substring", got) }