From 0db53dede6f55f12a7e66d71f8c725cd200c3f54 Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Fri, 16 Feb 2018 17:01:52 +0000 Subject: [PATCH] net/http: increase timeout length for TestOnlyWriteTimeout This test was sometimes timing out on the plan9/arm builder (raspberry pi) when run in parallel with other network intensive tests. It appears that tcp on the loopback interface could do with some tuning for better performance on Plan 9, but until that's done, increasing the timeout from 5 to 10 seconds allows this test to pass. This should have no effect on other platforms where 5 seconds was already enough. Change-Id: If310ee569cae8ca8f56346d84ce23803feb23a41 Reviewed-on: https://go-review.googlesource.com/94796 Reviewed-by: Brad Fitzpatrick --- src/net/http/serve_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {