diff options
author | 2017-01-29 12:06:26 -0800 | |
---|---|---|
committer | 2017-01-29 20:06:26 +0000 | |
commit | 738067a3c7a5ec15690364c0f5ba97c884195cd5 (patch) | |
tree | 7fb15ac9b4d2cc9a0f419caf481cb83da9eb483e /test | |
parent | bc301be5ee5841efdddd64b3f3661053c753ffac (diff) | |
download | coredns-738067a3c7a5ec15690364c0f5ba97c884195cd5.tar.gz coredns-738067a3c7a5ec15690364c0f5ba97c884195cd5.tar.zst coredns-738067a3c7a5ec15690364c0f5ba97c884195cd5.zip |
Fix `go fmt`, `go lint`, and `go vet` issues (#494)
This fix fixes several `go fmt`, `go lint`, and `go vet` issues,
to make goreportcard happy:
https://goreportcard.com/report/github.com/miekg/coredns
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/etcd_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/etcd_test.go b/test/etcd_test.go index 145b83a48..a6093d4c4 100644 --- a/test/etcd_test.go +++ b/test/etcd_test.go @@ -70,7 +70,7 @@ func TestEtcdStubAndProxyLookup(t *testing.T) { state := request.Request{W: &test.ResponseWriter{}, Req: new(dns.Msg)} resp, err := p.Lookup(state, "example.com.", dns.TypeA) if err != nil { - t.Fatalf("Expected to receive reply, but didn't", err) + t.Fatalf("Expected to receive reply, but didn't: %v", err) } if len(resp.Answer) == 0 { t.Fatalf("Expected to at least one RR in the answer section, got none") @@ -79,7 +79,7 @@ func TestEtcdStubAndProxyLookup(t *testing.T) { t.Errorf("Expected RR to A, got: %d", resp.Answer[0].Header().Rrtype) } if resp.Answer[0].(*dns.A).A.String() != "93.184.216.34" { - t.Errorf("Expected 93.184.216.34, got: %d", resp.Answer[0].(*dns.A).A.String()) + t.Errorf("Expected 93.184.216.34, got: %s", resp.Answer[0].(*dns.A).A.String()) } } |