aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/grpc_test.go4
-rw-r--r--test/reload_test.go2
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))
}
}