aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Yong Tang <yongtang@users.noreply.github.com> 2017-01-29 12:06:26 -0800
committerGravatar Miek Gieben <miek@miek.nl> 2017-01-29 20:06:26 +0000
commit738067a3c7a5ec15690364c0f5ba97c884195cd5 (patch)
tree7fb15ac9b4d2cc9a0f419caf481cb83da9eb483e /test
parentbc301be5ee5841efdddd64b3f3661053c753ffac (diff)
downloadcoredns-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.go4
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())
}
}