diff options
author | 2017-06-14 09:37:10 -0700 | |
---|---|---|
committer | 2017-06-14 09:37:10 -0700 | |
commit | e49ca86ce463395f7d0d2b997c93d25e3d101ca0 (patch) | |
tree | 9457aa245a6ccc278a296d341370eae99e1f78b2 /test | |
parent | 5c10eba31c17dcc5d95431e655280fff19979a34 (diff) | |
download | coredns-e49ca86ce463395f7d0d2b997c93d25e3d101ca0.tar.gz coredns-e49ca86ce463395f7d0d2b997c93d25e3d101ca0.tar.zst coredns-e49ca86ce463395f7d0d2b997c93d25e3d101ca0.zip |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/grpc_test.go | 4 | ||||
-rw-r--r-- | test/reload_test.go | 2 |
2 files changed, 3 insertions, 3 deletions
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)) } } diff --git a/test/reload_test.go b/test/reload_test.go index 61fc76b26..0f9db5059 100644 --- a/test/reload_test.go +++ b/test/reload_test.go @@ -45,6 +45,6 @@ func send(t *testing.T, server string) { t.Fatalf("Expected successful reply, got %s", dns.RcodeToString[r.Rcode]) } if len(r.Extra) != 2 { - t.Fatalf("Expected 2 RRs in additional, got %s", len(r.Extra)) + t.Fatalf("Expected 2 RRs in additional, got %d", len(r.Extra)) } } |