Skip to content

Commit

Permalink
net/http: skip TestClientTimeout_h{1,2} on windows/arm and windows/arm64
Browse files Browse the repository at this point in the history
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 <[email protected]>
Run-TryBot: Bryan Mills <[email protected]>
Reviewed-by: Damien Neil <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
  • Loading branch information
Bryan C. Mills committed Jan 5, 2022
1 parent 002283e commit 88cafe0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/net/http/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"encoding/base64"
"errors"
"fmt"
"internal/testenv"
"io"
"log"
"net"
Expand All @@ -21,6 +22,7 @@ import (
"net/http/httptest"
"net/url"
"reflect"
"runtime"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 88cafe0

Please sign in to comment.