mirror of https://github.com/golang/go.git
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
This commit is contained in:
parent
800d8adf35
commit
9cddb60d25
|
|
@ -494,10 +494,7 @@ func testVariousDeadlines(t *testing.T, maxProcs int) {
|
|||
clientc <- copyRes{n, err, d}
|
||||
}()
|
||||
|
||||
tooLong := 2 * time.Second
|
||||
if runtime.GOOS == "windows" {
|
||||
tooLong = 5 * time.Second
|
||||
}
|
||||
tooLong := 5 * time.Second
|
||||
select {
|
||||
case res := <-clientc:
|
||||
if isTimeout(res.err) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue