aboutsummaryrefslogtreecommitdiff
path: root/src/context
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2016-04-06 19:02:27 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2016-04-06 19:28:24 +0000
commit2cefd12a1bf7ee1d1aad03e17c4680d4b611d6da (patch)
treeb179bad07cf749bdd002ee50f028145d8feafa6d /src/context
parentf38f43d029de16f21f9102226d5c24684fb0ea25 (diff)
downloadgo-2cefd12a1bf7ee1d1aad03e17c4680d4b611d6da.tar.xz
net, runtime: skip flaky tests on OpenBSD
Flaky tests are a distraction and cover up real problems. File bugs instead and mark them as flaky. This moves the net/http flaky test flagging mechanism to internal/testenv. Updates #15156 Updates #15157 Updates #15158 Change-Id: I0e561cd2a09c0dec369cd4ed93bc5a2b40233dfe Reviewed-on: https://go-review.googlesource.com/21614 Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/context')
-rw-r--r--src/context/context_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/context/context_test.go b/src/context/context_test.go
index 05345fc5e5..60020303c7 100644
--- a/src/context/context_test.go
+++ b/src/context/context_test.go
@@ -6,6 +6,7 @@ package context
import (
"fmt"
+ "internal/testenv"
"math/rand"
"runtime"
"strings"
@@ -258,6 +259,9 @@ func TestDeadline(t *testing.T) {
}
func TestTimeout(t *testing.T) {
+ if runtime.GOOS == "openbsd" {
+ testenv.SkipFlaky(t, 15158)
+ }
c, _ := WithTimeout(Background(), 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)