mirror of https://github.com/golang/go.git
net: wait longer before failing TestVariousDeadlines4Proc on windows
This is an attempt to make our slow windows-386 builder more reliable. R=golang-dev, dave CC=golang-dev https://golang.org/cl/12798045
This commit is contained in:
parent
6383896fee
commit
ec9e3e62a1
|
|
@ -496,7 +496,10 @@ func testVariousDeadlines(t *testing.T, maxProcs int) {
|
|||
clientc <- copyRes{n, err, d}
|
||||
}()
|
||||
|
||||
const tooLong = 2000 * time.Millisecond
|
||||
tooLong := 2 * time.Second
|
||||
if runtime.GOOS == "windows" {
|
||||
tooLong = 5 * time.Second
|
||||
}
|
||||
select {
|
||||
case res := <-clientc:
|
||||
if isTimeout(res.err) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue