diff options
author | 2016-11-13 14:03:12 +0000 | |
---|---|---|
committer | 2016-11-13 14:03:12 +0000 | |
commit | ece3cf8ecf5c9bb9cf523eb1e271f196c0929982 (patch) | |
tree | ec72ffda284ac0f7c44f33d6760d61c970507755 /test/auto_test.go | |
parent | f402b8f726d5c3550ae2d4efc45d9b3d95e1bef0 (diff) | |
download | coredns-ece3cf8ecf5c9bb9cf523eb1e271f196c0929982.tar.gz coredns-ece3cf8ecf5c9bb9cf523eb1e271f196c0929982.tar.zst coredns-ece3cf8ecf5c9bb9cf523eb1e271f196c0929982.zip |
Fix various issues with formatting and typos (#424)
* Fix typos
* Simplify code
* Fix error usage
Diffstat (limited to 'test/auto_test.go')
-rw-r--r-- | test/auto_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/auto_test.go b/test/auto_test.go index c9abf826a..c44a2a8c3 100644 --- a/test/auto_test.go +++ b/test/auto_test.go @@ -35,7 +35,7 @@ func TestAuto(t *testing.T) { udp, _ := CoreDNSServerPorts(i, 0) if udp == "" { - t.Fatalf("Could not get UDP listening port") + t.Fatal("Could not get UDP listening port") } defer i.Stop() @@ -102,7 +102,7 @@ func TestAutoNonExistentZone(t *testing.T) { udp, _ := CoreDNSServerPorts(i, 0) if udp == "" { - t.Fatalf("Could not get UDP listening port") + t.Fatal("Could not get UDP listening port") } defer i.Stop() @@ -141,7 +141,7 @@ func TestAutoAXFR(t *testing.T) { udp, _ := CoreDNSServerPorts(i, 0) if udp == "" { - t.Fatalf("Could not get UDP listening port") + t.Fatal("Could not get UDP listening port") } defer i.Stop() @@ -162,7 +162,7 @@ func TestAutoAXFR(t *testing.T) { t.Fatal("Expected to receive reply, but didn't") } if len(resp.Answer) != 5 { - t.Fatal("Expected response with %d RRs, got %d", 5, len(resp.Answer)) + t.Fatalf("Expected response with %d RRs, got %d", 5, len(resp.Answer)) } } |