Commit 9cddb60d authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

net: extend TestVariousDeadlines1Proc timeout

TestVariousDeadlines1Proc was flaky on my system,
failing on about 5% of runs.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/89830045
parent 800d8adf
...@@ -494,10 +494,7 @@ func testVariousDeadlines(t *testing.T, maxProcs int) { ...@@ -494,10 +494,7 @@ func testVariousDeadlines(t *testing.T, maxProcs int) {
clientc <- copyRes{n, err, d} clientc <- copyRes{n, err, d}
}() }()
tooLong := 2 * time.Second tooLong := 5 * time.Second
if runtime.GOOS == "windows" {
tooLong = 5 * time.Second
}
select { select {
case res := <-clientc: case res := <-clientc:
if isTimeout(res.err) { if isTimeout(res.err) {
......
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