1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:24:45 -07:00

net: fix TestTCPLookup

R=golang-dev, dvyukov, dave
CC=golang-dev
https://golang.org/cl/12766044
This commit is contained in:
Mikio Hara 2013-08-15 05:07:35 +09:00
parent f5806a9007
commit 3a93626b49

View File

@ -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 {