From 4c495b2aea0aeda3181088b0dbe49d1d58fa9b9c Mon Sep 17 00:00:00 2001 From: Michael Haro Date: Sat, 22 Aug 2015 10:10:57 -0700 Subject: [PATCH] Correct formatting directive in Log call --- client_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client_test.go b/client_test.go index 7bffa09e..6f160dd2 100644 --- a/client_test.go +++ b/client_test.go @@ -88,7 +88,6 @@ func TestClientEDNS0(t *testing.T) { // Validates the transmission and parsing of local EDNS0 options. func TestClientEDNS0Local(t *testing.T) { - optStr1 := "1979:0x0707" optStr2 := strconv.Itoa(EDNS0LOCALSTART) + ":0x0601" @@ -149,14 +148,14 @@ func TestClientEDNS0Local(t *testing.T) { // Validate the local options in the reply. got := r.Extra[1].(*OPT).Option[0].(*EDNS0_LOCAL).String() if got != optStr1 { - t.Log("failed to get local edns0 answer; got %s, expected %s", got, optStr1) + t.Logf("failed to get local edns0 answer; got %s, expected %s", got, optStr1) t.Fail() t.Logf("%v\n", r) } got = r.Extra[1].(*OPT).Option[1].(*EDNS0_LOCAL).String() if got != optStr2 { - t.Log("failed to get local edns0 answer; got %s, expected %s", got, optStr2) + t.Logf("failed to get local edns0 answer; got %s, expected %s", got, optStr2) t.Fail() t.Logf("%v\n", r) } @@ -286,5 +285,4 @@ func TestClientConn(t *testing.T) { if err = r.Unpack(buf); err != nil { t.Errorf("unable to unpack message fully: %v", err) } - }