From 507e377e181f893b633534d7a7cdf385dc274c80 Mon Sep 17 00:00:00 2001 From: adrienpetel Date: Wed, 4 Apr 2018 17:19:23 +0400 Subject: [PATCH] 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 --- src/net/lookup_test.go | 7 +++---- 1 file 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] -- 2.50.0