Commit 0db53ded authored by Richard Miller's avatar Richard Miller Committed by Brad Fitzpatrick

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/94796Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent b1dbce31
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment