From 35545cb2db3aa304d4052aadab76db68b53c1655 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 20 Dec 2017 00:51:46 +0100 Subject: [PATCH] fix test --- app/dns/server_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/dns/server_test.go b/app/dns/server_test.go index a22e5010..d773f827 100644 --- a/app/dns/server_test.go +++ b/app/dns/server_test.go @@ -85,20 +85,20 @@ func TestUDPServer(t *testing.T) { common.Must(space.Initialize()) common.Must(space.Start()) - server := FromSpace(space) - assert(server, IsNotNil) - - ips := server.Get("google.com") + ips, err := net.LookupIP("google.com") + assert(err, IsNil) assert(len(ips), Equals, 1) assert([]byte(ips[0]), Equals, []byte{8, 8, 8, 8}) - ips = server.Get("facebook.com") + ips, err = net.LookupIP("facebook.com") + assert(err, IsNil) assert(len(ips), Equals, 1) assert([]byte(ips[0]), Equals, []byte{9, 9, 9, 9}) dnsServer.Shutdown() - ips = server.Get("google.com") + ips, err = net.LookupIP("google.com") + assert(err, IsNil) assert(len(ips), Equals, 1) assert([]byte(ips[0]), Equals, []byte{8, 8, 8, 8}) }