Commit bc750ff0 authored by acud's avatar acud Committed by GitHub

libp2p: missing error check on TestStaticAddressResolver (#1400)

parent 2e768048
......@@ -92,7 +92,7 @@ func TestStaticAddressResolver(t *testing.T) {
}
}
t.Run(tc.name, func(t *testing.T) {
srv, _ := mockdns.NewServer(map[string]mockdns.Zone{
srv, err := mockdns.NewServer(map[string]mockdns.Zone{
"ipv4.com.": {
A: []string{"192.168.1.34"},
},
......@@ -101,6 +101,9 @@ func TestStaticAddressResolver(t *testing.T) {
AAAA: []string{"2001:db8::8a2e:370:1111"},
},
}, false)
if err != nil {
t.Fatalf("new mockdns: %v", err)
}
defer srv.Close()
srv.PatchNet(net.DefaultResolver)
......
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