From e49ca86ce463395f7d0d2b997c93d25e3d101ca0 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Wed, 14 Jun 2017 09:37:10 -0700 Subject: cleanup: go vet and golint run (#736) * cleanup: go vet and golint run Various cleanups trickered by go vet and golint. * Fix tests and lowercase all errors Lowercase all errors, some tests in kubernetes use errors from kubernetes which do start with a capital letter. --- test/grpc_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/grpc_test.go') diff --git a/test/grpc_test.go b/test/grpc_test.go index 4e01ea8f0..4795819fb 100644 --- a/test/grpc_test.go +++ b/test/grpc_test.go @@ -52,10 +52,10 @@ func TestGrpc(t *testing.T) { } if d.Rcode != dns.RcodeSuccess { - t.Errorf("Expected success but got %s", d.Rcode) + t.Errorf("Expected success but got %d", d.Rcode) } if len(d.Extra) != 2 { - t.Errorf("Expected 2 RRs in additional section, but got %s", len(d.Extra)) + t.Errorf("Expected 2 RRs in additional section, but got %d", len(d.Extra)) } } -- cgit v1.2.3