]> Cypherpunks repositories - gostls13.git/commitdiff
time: allow more time for TestOverflowRuntimeTimer to succeed
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 9 Sep 2013 05:50:11 +0000 (15:50 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 9 Sep 2013 05:50:11 +0000 (15:50 +1000)
Attempting to fix windows gobuilders

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/13507044

src/pkg/time/internal_test.go

index 4e5557d6a0bd6288c286b83825a42759bb668bb5..87fdd3216fa7cc213e1ec83ae30043466c582c4d 100644 (file)
@@ -35,7 +35,11 @@ func CheckRuntimeTimerOverflow() error {
        }
        startTimer(r)
 
-       const timeout = 100 * Millisecond
+       timeout := 100 * Millisecond
+       if runtime.GOOS == "windows" {
+               // Allow more time for gobuilder to succeed.
+               timeout = Second
+       }
 
        // Start a goroutine that should send on t.C before the timeout.
        t := NewTimer(1)