diff options
author | 2019-01-19 11:23:13 +0000 | |
---|---|---|
committer | 2019-01-19 11:23:13 +0000 | |
commit | 725becd134752caead1aa2b2cf3a72d01c13b599 (patch) | |
tree | 300dbfeac60f6cffd86c3aeb0b68d772415e6521 /plugin/normalize_test.go | |
parent | 278303ca0df6e6167788fa3435f6ea7c6253157b (diff) | |
download | coredns-725becd134752caead1aa2b2cf3a72d01c13b599.tar.gz coredns-725becd134752caead1aa2b2cf3a72d01c13b599.tar.zst coredns-725becd134752caead1aa2b2cf3a72d01c13b599.zip |
Stop importing testing in the main binary (#2479)
* Stop importing testing in the main binary
Stop importing "testing" into the main binary:
* test/helpers.go imported it; remote that and change function signature
* update all tests that use this
Signed-off-by: Miek Gieben <miek@miek.nl>
* Drop import testing from metrics plugin
Signed-off-by: Miek Gieben <miek@miek.nl>
* more fiddling
Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/normalize_test.go')
-rw-r--r-- | plugin/normalize_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/normalize_test.go b/plugin/normalize_test.go index e81d32629..315aaf5d9 100644 --- a/plugin/normalize_test.go +++ b/plugin/normalize_test.go @@ -26,7 +26,7 @@ func TestZoneNormalize(t *testing.T) { for _, actual := range zones { if actual != expected { - t.Errorf("Expected %v, got %v\n", expected, actual) + t.Errorf("Expected %v, got %v", expected, actual) } } } @@ -63,7 +63,7 @@ func TestNameNormalize(t *testing.T) { expected := names[i+1] actual := Name(ts).Normalize() if expected != actual { - t.Errorf("Expected %v, got %v\n", expected, actual) + t.Errorf("Expected %v, got %v", expected, actual) } } } @@ -78,7 +78,7 @@ func TestHostNormalize(t *testing.T) { expected := hosts[i+1] actual := Host(ts).Normalize() if expected != actual { - t.Errorf("Expected %v, got %v\n", expected, actual) + t.Errorf("Expected %v, got %v", expected, actual) } } } |