1
0
mirror of https://github.com/golang/go synced 2024-11-13 19:30:22 -07:00

time: increase timeout of TestOverflowRuntimeTimer on Plan 9

LGTM=dvyukov
R=dvyukov
CC=golang-codereviews
https://golang.org/cl/53000043
This commit is contained in:
David du Colombier 2014-01-27 11:11:44 +01:00
parent 03e4f25849
commit 496c030c50

View File

@ -36,9 +36,13 @@ func CheckRuntimeTimerOverflow() error {
startTimer(r)
timeout := 100 * Millisecond
if runtime.GOOS == "windows" {
// Allow more time for gobuilder to succeed.
switch runtime.GOOS {
// Allow more time for gobuilder to succeed.
case "windows":
timeout = Second
case "plan9":
// TODO(0intro): We don't know why it is needed.
timeout = 3 * Second
}
// Start a goroutine that should send on t.C before the timeout.