Commit 5f75314e authored by Alex Brainman's avatar Alex Brainman

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
parent 5863b7d2
...@@ -35,7 +35,11 @@ func CheckRuntimeTimerOverflow() error { ...@@ -35,7 +35,11 @@ func CheckRuntimeTimerOverflow() error {
} }
startTimer(r) 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. // Start a goroutine that should send on t.C before the timeout.
t := NewTimer(1) t := NewTimer(1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment