1
0
mirror of https://github.com/golang/go synced 2024-11-17 05:14:56 -07:00

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
This commit is contained in:
Alex Brainman 2013-09-09 15:50:11 +10:00
parent 5863b7d2ce
commit 5f75314e18

View 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)