aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/edns/edns_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-06-02 19:48:39 +0100
committerGravatar Yong Tang <yong.tang.github@outlook.com> 2018-06-02 11:48:39 -0700
commit22c0b30d5f7468c2477291419bee3e88dfba490c (patch)
tree1454e8de2c457fcc649a7712815a6a980526ee6b /plugin/pkg/edns/edns_test.go
parent3994d3a5a704aab10aa0e52fac8d60ac872ecaad (diff)
downloadcoredns-22c0b30d5f7468c2477291419bee3e88dfba490c.tar.gz
coredns-22c0b30d5f7468c2477291419bee3e88dfba490c.tar.zst
coredns-22c0b30d5f7468c2477291419bee3e88dfba490c.zip
presubmit: Check errorf as well (#1845)
Uppercase all these test errors as well. And extend the presubmit to check for these in the future. Also do a slightly smarter grep to only get t.<something>. as (because dump regexp) this also grep over non test files.
Diffstat (limited to 'plugin/pkg/edns/edns_test.go')
-rw-r--r--plugin/pkg/edns/edns_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/pkg/edns/edns_test.go b/plugin/pkg/edns/edns_test.go
index 89ac6d2ec..a775b50f1 100644
--- a/plugin/pkg/edns/edns_test.go
+++ b/plugin/pkg/edns/edns_test.go
@@ -12,7 +12,7 @@ func TestVersion(t *testing.T) {
_, err := Version(m)
if err == nil {
- t.Errorf("expected wrong version, but got OK")
+ t.Errorf("Expected wrong version, but got OK")
}
}
@@ -22,7 +22,7 @@ func TestVersionNoEdns(t *testing.T) {
_, err := Version(m)
if err != nil {
- t.Errorf("expected no error, but got one: %s", err)
+ t.Errorf("Expected no error, but got one: %s", err)
}
}