Skip to content

Commit 0db53de

Browse files
Richard Millerbradfitz
Richard Miller
authored andcommitted
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 <[email protected]>
1 parent b1dbce3 commit 0db53de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/http/serve_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ func TestOnlyWriteTimeout(t *testing.T) {
931931
if err == nil {
932932
t.Errorf("expected an error from Get request")
933933
}
934-
case <-time.After(5 * time.Second):
934+
case <-time.After(10 * time.Second):
935935
t.Fatal("timeout waiting for Get error")
936936
}
937937
if err := <-afterTimeoutErrc; err == nil {

0 commit comments

Comments
 (0)