diff --git a/src/net/http/serve_test.go b/src/net/http/serve_test.go index 9cbfe872af..5ff08b4036 100644 --- a/src/net/http/serve_test.go +++ b/src/net/http/serve_test.go @@ -931,7 +931,7 @@ func TestOnlyWriteTimeout(t *testing.T) { if err == nil { t.Errorf("expected an error from Get request") } - case <-time.After(5 * time.Second): + case <-time.After(10 * time.Second): t.Fatal("timeout waiting for Get error") } if err := <-afterTimeoutErrc; err == nil {