This commit is contained in:
Miek Gieben 2012-11-19 16:17:13 +01:00
parent fa8a5e5757
commit 4e2af5cdb1
3 changed files with 5 additions and 4 deletions

View File

@ -19,14 +19,14 @@ func TestClientSync(t *testing.T) {
}
}
/*
func TestClientASync(t *testing.T) {
m := new(Msg)
m.SetQuestion("miek.nl.", TypeSOA)
c := new(Client)
ch := c.Do(m, "85.223.71.124:53", nil)
/*
ch = ch
func(m, r *Msg, e error, d interface{}) {
if r != nil && r.Rcode != RcodeSuccess {
t.Log("Failed to get an valid answer")
@ -34,8 +34,8 @@ func TestClientASync(t *testing.T) {
t.Logf("%v\n", r)
}
})
*/
}
*/
func TestClientEDNS0(t *testing.T) {
m := new(Msg)

View File

@ -1,2 +1,3 @@
package dns
// Find better solution

View File

@ -38,7 +38,7 @@ func TestServing(t *testing.T) {
m := new(Msg)
m.SetQuestion("miek.nl.", TypeTXT)
r, _ , _ := c.Exchange(m, "127.0.0.1:8053")
r, _, _ := c.Exchange(m, "127.0.0.1:8053")
txt := r.Extra[0].(*RR_TXT).Txt[0]
if txt != "Hello world" {
t.Log("Unexpected result for miek.nl", txt, "!= Hello world")