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:
parent
5863b7d2ce
commit
5f75314e18
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user