From 33f3dffa7c3105b98e40c417df577683e341be87 Mon Sep 17 00:00:00 2001 From: Mikio Hara Date: Sat, 24 Aug 2013 22:05:14 +0900 Subject: [PATCH] net: allow TestDialFailPDLeak run in long-mode test R=golang-dev, dave CC=golang-dev https://golang.org/cl/12917050 --- src/pkg/net/dial_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pkg/net/dial_test.go b/src/pkg/net/dial_test.go index 59cd9cbe538..d79c8a536f9 100644 --- a/src/pkg/net/dial_test.go +++ b/src/pkg/net/dial_test.go @@ -331,13 +331,11 @@ func numFD() int { panic("numFDs not implemented on " + runtime.GOOS) } -var testPoller = flag.Bool("poller", false, "platform supports runtime-integrated poller") - // Assert that a failed Dial attempt does not leak // runtime.PollDesc structures func TestDialFailPDLeak(t *testing.T) { - if !*testPoller { - t.Skip("test disabled; use -poller to enable") + if testing.Short() { + t.Skip("skipping test in short mode") } const loops = 10