mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
f38f43d029
commit
2cefd12a1b
9 changed files with 31 additions and 11 deletions
|
|
@ -59,6 +59,8 @@ func TestDialTimeoutFDLeak(t *testing.T) {
|
|||
switch runtime.GOOS {
|
||||
case "plan9":
|
||||
t.Skipf("%s does not have full support of socktest", runtime.GOOS)
|
||||
case "openbsd":
|
||||
testenv.SkipFlaky(t, 15157)
|
||||
}
|
||||
|
||||
const T = 100 * time.Millisecond
|
||||
|
|
@ -126,6 +128,8 @@ func TestDialerDualStackFDLeak(t *testing.T) {
|
|||
t.Skipf("%s does not have full support of socktest", runtime.GOOS)
|
||||
case "windows":
|
||||
t.Skipf("not implemented a way to cancel dial racers in TCP SYN-SENT state on %s", runtime.GOOS)
|
||||
case "openbsd":
|
||||
testenv.SkipFlaky(t, 15157)
|
||||
}
|
||||
if !supportsIPv4 || !supportsIPv6 {
|
||||
t.Skip("both IPv4 and IPv6 are required")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue