From 496c030c506bf1ac18c82ba85d4bcc5031253bdf Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Mon, 27 Jan 2014 11:11:44 +0100 Subject: [PATCH] time: increase timeout of TestOverflowRuntimeTimer on Plan 9 LGTM=dvyukov R=dvyukov CC=golang-codereviews https://golang.org/cl/53000043 --- src/pkg/time/internal_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pkg/time/internal_test.go b/src/pkg/time/internal_test.go index 87fdd3216f..d9592954b2 100644 --- a/src/pkg/time/internal_test.go +++ b/src/pkg/time/internal_test.go @@ -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.