]> Cypherpunks repositories - gostls13.git/commitdiff
time: skip TestTimerModifiedEarlier on plan9/arm
authorBryan C. Mills <bcmills@google.com>
Thu, 6 Jan 2022 16:59:09 +0000 (11:59 -0500)
committerBryan Mills <bcmills@google.com>
Thu, 6 Jan 2022 19:42:27 +0000 (19:42 +0000)
This test is observed to be flaky on the plan9-arm builder.
Skip it on that platform until it can be diagnosed and fixed.

For #50470

Change-Id: If626af426d856c377e00ac5baaca52899456556e
Reviewed-on: https://go-review.googlesource.com/c/go/+/375934
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/time/sleep_test.go

index c48e704eb7b10cce96a6378a7e30a60f36d31816..5a949b6f80e943150e09c966ef6df75017baa72c 100644 (file)
@@ -7,6 +7,7 @@ package time_test
 import (
        "errors"
        "fmt"
+       "internal/testenv"
        "math/rand"
        "runtime"
        "strings"
@@ -531,6 +532,10 @@ func TestZeroTimer(t *testing.T) {
 // Test that rapidly moving a timer earlier doesn't cause it to get dropped.
 // Issue 47329.
 func TestTimerModifiedEarlier(t *testing.T) {
+       if runtime.GOOS == "plan9" && runtime.GOARCH == "arm" {
+               testenv.SkipFlaky(t, 50470)
+       }
+
        past := Until(Unix(0, 0))
        count := 1000
        fail := 0