mirror of
https://github.com/golang/go
synced 2024-11-24 04:40:24 -07:00
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>
This commit is contained in:
parent
187afdebef
commit
e2c09749af
@ -242,6 +242,9 @@ func testDeadline(c Context, wait time.Duration, t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestDeadline(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))
|
c, _ := WithDeadline(Background(), time.Now().Add(100*time.Millisecond))
|
||||||
if got, prefix := fmt.Sprint(c), "context.Background.WithDeadline("; !strings.HasPrefix(got, prefix) {
|
if got, prefix := fmt.Sprint(c), "context.Background.WithDeadline("; !strings.HasPrefix(got, prefix) {
|
||||||
t.Errorf("c.String() = %q want prefix %q", 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) {
|
func TestCanceledTimeout(t *testing.T) {
|
||||||
|
if runtime.GOOS == "openbsd" {
|
||||||
|
testenv.SkipFlaky(t, 15158)
|
||||||
|
}
|
||||||
c, _ := WithTimeout(Background(), 200*time.Millisecond)
|
c, _ := WithTimeout(Background(), 200*time.Millisecond)
|
||||||
o := otherContext{c}
|
o := otherContext{c}
|
||||||
c, cancel := WithTimeout(o, 400*time.Millisecond)
|
c, cancel := WithTimeout(o, 400*time.Millisecond)
|
||||||
|
Loading…
Reference in New Issue
Block a user