]> Cypherpunks repositories - gostls13.git/commitdiff
time: increase timeout of TestOverflowRuntimeTimer on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Mon, 27 Jan 2014 10:11:44 +0000 (11:11 +0100)
committerDavid du Colombier <0intro@gmail.com>
Mon, 27 Jan 2014 10:11:44 +0000 (11:11 +0100)
LGTM=dvyukov
R=dvyukov
CC=golang-codereviews
https://golang.org/cl/53000043

src/pkg/time/internal_test.go

index 87fdd3216fa7cc213e1ec83ae30043466c582c4d..d9592954b24d57e0453e2387a36d0a688ffd272a 100644 (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.