From: Alex Brainman Date: Mon, 9 Sep 2013 05:50:11 +0000 (+1000) Subject: time: allow more time for TestOverflowRuntimeTimer to succeed X-Git-Tag: go1.2rc2~311 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5f75314e18f726bd4c19bafd95c6c5b1d0db2dc5;p=gostls13.git time: allow more time for TestOverflowRuntimeTimer to succeed Attempting to fix windows gobuilders R=golang-dev, r CC=golang-dev https://golang.org/cl/13507044 --- diff --git a/src/pkg/time/internal_test.go b/src/pkg/time/internal_test.go index 4e5557d6a0..87fdd3216f 100644 --- a/src/pkg/time/internal_test.go +++ b/src/pkg/time/internal_test.go @@ -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)