From: adrienpetel Date: Wed, 4 Apr 2018 13:19:23 +0000 (+0400) Subject: net: mark tests with retry as parallel X-Git-Tag: go1.11beta1~849 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=507e377e181f893b633534d7a7cdf385dc274c80;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- 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]