Skip to content

Commit

Permalink
And of course the test too
Browse files Browse the repository at this point in the history
  • Loading branch information
miekg committed Jul 3, 2015
1 parent 2f50303 commit 3e549e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ func TestClientConn(t *testing.T) {
t.Errorf("failed to exchange: %v", err)
}
h := new(Header)
buf, err := cn.ReadMsgBytes(h)
buf, err := cn.ReadMsgHeader(h)
if buf == nil {
t.Errorf("failed to get an valid answer\n%v", r)
}
if int(h.Bits&0xF) != RcodeSuccess {
t.Errorf("failed to get an valid answer in ReadMsgBytes\n%v", r)
t.Errorf("failed to get an valid answer in ReadMsgHeader\n%v", r)
}
if h.Ancount != 0 || h.Qdcount != 1 || h.Nscount != 0 || h.Arcount != 1 {
t.Errorf("expected to have question and additional in response; got something else: %+v", h)
Expand Down

0 comments on commit 3e549e2

Please sign in to comment.