Commit 507e377e authored by adrienpetel's avatar adrienpetel Committed by Ian Lance Taylor

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: default avatarIan Lance Taylor <iant@golang.org>
parent 191efbc4
...@@ -63,6 +63,7 @@ var lookupGoogleSRVTests = []struct { ...@@ -63,6 +63,7 @@ var lookupGoogleSRVTests = []struct {
var backoffDuration = [...]time.Duration{time.Second, 5 * time.Second, 30 * time.Second} var backoffDuration = [...]time.Duration{time.Second, 5 * time.Second, 30 * time.Second}
func TestLookupGoogleSRV(t *testing.T) { func TestLookupGoogleSRV(t *testing.T) {
t.Parallel()
if testenv.Builder() == "" { if testenv.Builder() == "" {
testenv.MustHaveExternalNetwork(t) testenv.MustHaveExternalNetwork(t)
} }
...@@ -109,6 +110,7 @@ var lookupGmailMXTests = []struct { ...@@ -109,6 +110,7 @@ var lookupGmailMXTests = []struct {
} }
func TestLookupGmailMX(t *testing.T) { func TestLookupGmailMX(t *testing.T) {
t.Parallel()
if testenv.Builder() == "" { if testenv.Builder() == "" {
testenv.MustHaveExternalNetwork(t) testenv.MustHaveExternalNetwork(t)
} }
...@@ -117,8 +119,6 @@ func TestLookupGmailMX(t *testing.T) { ...@@ -117,8 +119,6 @@ func TestLookupGmailMX(t *testing.T) {
t.Skip("IPv4 is required") t.Skip("IPv4 is required")
} }
defer dnsWaitGroup.Wait()
attempts := 0 attempts := 0
for i := 0; i < len(lookupGmailMXTests); i++ { for i := 0; i < len(lookupGmailMXTests); i++ {
tt := lookupGmailMXTests[i] tt := lookupGmailMXTests[i]
...@@ -189,6 +189,7 @@ var lookupGmailTXTTests = []struct { ...@@ -189,6 +189,7 @@ var lookupGmailTXTTests = []struct {
} }
func TestLookupGmailTXT(t *testing.T) { func TestLookupGmailTXT(t *testing.T) {
t.Parallel()
if testenv.Builder() == "" { if testenv.Builder() == "" {
testenv.MustHaveExternalNetwork(t) testenv.MustHaveExternalNetwork(t)
} }
...@@ -197,8 +198,6 @@ func TestLookupGmailTXT(t *testing.T) { ...@@ -197,8 +198,6 @@ func TestLookupGmailTXT(t *testing.T) {
t.Skip("IPv4 is required") t.Skip("IPv4 is required")
} }
defer dnsWaitGroup.Wait()
attempts := 0 attempts := 0
for i := 0; i < len(lookupGmailTXTTests); i++ { for i := 0; i < len(lookupGmailTXTTests); i++ {
tt := lookupGmailTXTTests[i] tt := lookupGmailTXTTests[i]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment