Fix the tests
This commit is contained in:
parent
1abdeb80b4
commit
31a477a515
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue