Skip to content

Commit ac4db66

Browse files
committed
Revert Plan9 workaround
1 parent 35017c7 commit ac4db66

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/net/http/serve_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4606,11 +4606,7 @@ 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-
deflake := 10 * time.Millisecond
4610-
if runtime.GOOS == "plan9" {
4611-
deflake = 100 * time.Millisecond
4612-
}
4613-
time.Sleep(deflake)
4609+
time.Sleep(10 * time.Millisecond)
46144610
res, err = cst.c.Get(cst.ts.URL)
46154611
if err != nil {
46164612
t.Error(err)

0 commit comments

Comments
 (0)