diff options
| author | adrienpetel <peteladrien@gmail.com> | 2018-04-04 17:19:23 +0400 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2018-04-12 21:33:25 +0000 |
| commit | 507e377e181f893b633534d7a7cdf385dc274c80 (patch) | |
| tree | ab57916bcb9d016e9ff8d146bfe3fd49383ce7e0 /src | |
| parent | 191efbc419d7e5dec842c20841f6f716da4b561d (diff) | |
| download | go-507e377e181f893b633534d7a7cdf385dc274c80.tar.xz | |
net: mark tests with retry as parallel
Fixes #24580
Change-Id: I7536aca1e90717283bd6a3bb4b1bab059b0cf720
Reviewed-on: https://go-review.googlesource.com/104677
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/net/lookup_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/net/lookup_test.go b/src/net/lookup_test.go index c2a6477e2e..7b69bae176 100644 --- a/src/net/lookup_test.go +++ b/src/net/lookup_test.go @@ -63,6 +63,7 @@ var lookupGoogleSRVTests = []struct { var backoffDuration = [...]time.Duration{time.Second, 5 * time.Second, 30 * time.Second} func TestLookupGoogleSRV(t *testing.T) { + t.Parallel() if testenv.Builder() == "" { testenv.MustHaveExternalNetwork(t) } @@ -109,6 +110,7 @@ var lookupGmailMXTests = []struct { } func TestLookupGmailMX(t *testing.T) { + t.Parallel() if testenv.Builder() == "" { testenv.MustHaveExternalNetwork(t) } @@ -117,8 +119,6 @@ func TestLookupGmailMX(t *testing.T) { t.Skip("IPv4 is required") } - defer dnsWaitGroup.Wait() - attempts := 0 for i := 0; i < len(lookupGmailMXTests); i++ { tt := lookupGmailMXTests[i] @@ -189,6 +189,7 @@ var lookupGmailTXTTests = []struct { } func TestLookupGmailTXT(t *testing.T) { + t.Parallel() if testenv.Builder() == "" { testenv.MustHaveExternalNetwork(t) } @@ -197,8 +198,6 @@ func TestLookupGmailTXT(t *testing.T) { t.Skip("IPv4 is required") } - defer dnsWaitGroup.Wait() - attempts := 0 for i := 0; i < len(lookupGmailTXTTests); i++ { tt := lookupGmailTXTTests[i] |
