Skip to content

Commit 93533be

Browse files
psilva261rafael2k
authored andcommitted
net/http: deflake TestServerEmptyBodyRace
1 parent 9b48fed commit 93533be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/net/http/serve_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4606,7 +4606,11 @@ func testServerEmptyBodyRace(t *testing.T, mode testMode) {
46064606
if err != nil {
46074607
// Try to deflake spurious "connection reset by peer" under load.
46084608
// See golang.org/issue/22540.
4609-
time.Sleep(10 * time.Millisecond)
4609+
deflake := 10 * time.Millisecond
4610+
if runtime.GOOS == "plan9" && runtime.GOARCH == "arm64" {
4611+
deflake = 100 * time.Millisecond
4612+
}
4613+
time.Sleep(deflake)
46104614
res, err = cst.c.Get(cst.ts.URL)
46114615
if err != nil {
46124616
t.Error(err)

0 commit comments

Comments
 (0)