Commit 3a93626b authored by Mikio Hara's avatar Mikio Hara

net: fix TestTCPLookup

R=golang-dev, dvyukov, dave
CC=golang-dev
https://golang.org/cl/12766044
parent f5806a90
...@@ -15,10 +15,10 @@ func TestTCPLookup(t *testing.T) { ...@@ -15,10 +15,10 @@ func TestTCPLookup(t *testing.T) {
t.Skip("skipping test to avoid external network") t.Skip("skipping test to avoid external network")
} }
c, err := Dial("tcp", "8.8.8.8:53") c, err := Dial("tcp", "8.8.8.8:53")
defer c.Close()
if err != nil { if err != nil {
t.Fatalf("Dial failed: %v", err) t.Fatalf("Dial failed: %v", err)
} }
defer c.Close()
cfg := &dnsConfig{timeout: 10, attempts: 3} cfg := &dnsConfig{timeout: 10, attempts: 3}
_, err = exchange(cfg, c, "com.", dnsTypeALL) _, err = exchange(cfg, c, "com.", dnsTypeALL)
if err != nil { if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment