gofmt
This commit is contained in:
parent
fa8a5e5757
commit
4e2af5cdb1
|
@ -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)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
package dns
|
||||
|
||||
// Find better solution
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue