]> Cypherpunks repositories - gostls13.git/commitdiff
net: deflake TestLookupNonLDH
authorMikio Hara <mikioh.mikioh@gmail.com>
Thu, 27 Oct 2016 21:20:44 +0000 (06:20 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 28 Oct 2016 22:20:20 +0000 (22:20 +0000)
Fixes #17623.

Change-Id: I4717e8399f955c9be7ba19108bb0bcc108187c04
Reviewed-on: https://go-review.googlesource.com/32147
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/lookup_test.go

index c59ecad2f0c2d1d98da8228ef10568faba18cff6..656bebb9b87531794baaa798b5b147de0ead8841 100644 (file)
@@ -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