From: Mikio Hara Date: Thu, 27 Oct 2016 21:20:44 +0000 (+0900) Subject: net: deflake TestLookupNonLDH X-Git-Tag: go1.8beta1~473 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=69b7fe1a9035d197e5f8040262e8ac335b66f9f8;p=gostls13.git net: deflake TestLookupNonLDH Fixes #17623. Change-Id: I4717e8399f955c9be7ba19108bb0bcc108187c04 Reviewed-on: https://go-review.googlesource.com/32147 Run-TryBot: Mikio Hara TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/net/lookup_test.go b/src/net/lookup_test.go index c59ecad2f0..656bebb9b8 100644 --- a/src/net/lookup_test.go +++ b/src/net/lookup_test.go @@ -722,6 +722,10 @@ func TestLookupNonLDH(t *testing.T) { if runtime.GOOS == "nacl" { t.Skip("skip on nacl") } + if fixup := forceGoDNS(); fixup != nil { + defer fixup() + } + // "LDH" stands for letters, digits, and hyphens and is the usual // description of standard DNS names. // This test is checking that other kinds of names are reported