]> Cypherpunks repositories - gostls13.git/commitdiff
net: wait longer before failing TestVariousDeadlines4Proc on windows
authorAlex Brainman <alex.brainman@gmail.com>
Fri, 23 Aug 2013 05:07:42 +0000 (15:07 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Fri, 23 Aug 2013 05:07:42 +0000 (15:07 +1000)
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

src/pkg/net/timeout_test.go

index 7ea81fe34b040079c1c9e3272517bcbf4aad31df..350ec8f7b1c1c52503ab6bba7f60553ff25a3db6 100644 (file)
@@ -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) {