From 3e549e2f6fd420cdffa528144b925305401bf55c Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 3 Jul 2015 09:34:46 +0100 Subject: [PATCH] And of course the test too --- client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client_test.go b/client_test.go index 15fe7701..f2ade148 100644 --- a/client_test.go +++ b/client_test.go @@ -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)