From 69b7fe1a9035d197e5f8040262e8ac335b66f9f8 Mon Sep 17 00:00:00 2001 From: Mikio Hara Date: Fri, 28 Oct 2016 06:20:44 +0900 Subject: [PATCH] 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 --- src/net/lookup_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.48.1