aboutsummaryrefslogtreecommitdiff
path: root/src/context/context_test.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2016-04-07 09:00:32 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2016-04-07 17:49:26 +0000
commite2c09749af8c50fc2c0b515f2adc990cb0cb3cf6 (patch)
tree6e868f33279fe6cee58141d78491e164348dc872 /src/context/context_test.go
parent187afdebef7953295189d4531e7dccdc0cb64500 (diff)
downloadgo-e2c09749af8c50fc2c0b515f2adc990cb0cb3cf6.tar.xz
context: mark more tests as flaky on OpenBSD
Updates #15158 Change-Id: I53e9e68d36efbf52736822e6caa047cfff501283 Reviewed-on: https://go-review.googlesource.com/21653 Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/context/context_test.go')
-rw-r--r--src/context/context_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/context/context_test.go b/src/context/context_test.go
index 60020303c7..74af9a301c 100644
--- a/src/context/context_test.go
+++ b/src/context/context_test.go
@@ -242,6 +242,9 @@ func testDeadline(c Context, wait time.Duration, t *testing.T) {
}
func TestDeadline(t *testing.T) {
+ if runtime.GOOS == "openbsd" {
+ testenv.SkipFlaky(t, 15158)
+ }
c, _ := WithDeadline(Background(), time.Now().Add(100*time.Millisecond))
if got, prefix := fmt.Sprint(c), "context.Background.WithDeadline("; !strings.HasPrefix(got, prefix) {
t.Errorf("c.String() = %q want prefix %q", got, prefix)
@@ -279,6 +282,9 @@ func TestTimeout(t *testing.T) {
}
func TestCanceledTimeout(t *testing.T) {
+ if runtime.GOOS == "openbsd" {
+ testenv.SkipFlaky(t, 15158)
+ }
c, _ := WithTimeout(Background(), 200*time.Millisecond)
o := otherContext{c}
c, cancel := WithTimeout(o, 400*time.Millisecond)