Fix the tests

This commit is contained in:
Miek Gieben 2012-05-07 15:54:14 +02:00
parent 1abdeb80b4
commit 31a477a515
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ func TestClientSync(t *testing.T) {
m.SetQuestion("miek.nl.", TypeSOA)
c := NewClient()
r, _ , _, _:= c.Exchange(m, "85.223.71.124:53")
r, _:= c.Exchange(m, "85.223.71.124:53")
if r != nil && r.Rcode != RcodeSuccess {
t.Log("Failed to get an valid answer")
@ -58,7 +58,7 @@ func TestClientEDNS0(t *testing.T) {
//edns.SetNsid("") // Empty to request it
c := NewClient()
r, _, _, _ := c.Exchange(m, "85.223.71.124:53")
r, _ := c.Exchange(m, "85.223.71.124:53")
if r != nil && r.Rcode != RcodeSuccess {
t.Log("Failed to get an valid answer")

View File

@ -7,7 +7,7 @@ import (
func sendit(u *Msg) (r *Msg, e error) {
c := NewClient()
r, _, _, e = c.Exchange(u, "127.0.0.1:53")
r, e = c.Exchange(u, "127.0.0.1:53")
return r, e
}