From: Mikio Hara Date: Wed, 14 Aug 2013 20:07:35 +0000 (+0900) Subject: net: fix TestTCPLookup X-Git-Tag: go1.2rc2~572 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3a93626b49a762867ddedf1033c90747d479b7ec;p=gostls13.git net: fix TestTCPLookup R=golang-dev, dvyukov, dave CC=golang-dev https://golang.org/cl/12766044 --- diff --git a/src/pkg/net/dnsclient_unix_test.go b/src/pkg/net/dnsclient_unix_test.go index 0375af5943..e8edc862da 100644 --- a/src/pkg/net/dnsclient_unix_test.go +++ b/src/pkg/net/dnsclient_unix_test.go @@ -15,10 +15,10 @@ func TestTCPLookup(t *testing.T) { t.Skip("skipping test to avoid external network") } c, err := Dial("tcp", "8.8.8.8:53") - defer c.Close() if err != nil { t.Fatalf("Dial failed: %v", err) } + defer c.Close() cfg := &dnsConfig{timeout: 10, attempts: 3} _, err = exchange(cfg, c, "com.", dnsTypeALL) if err != nil {