aboutsummaryrefslogtreecommitdiff
path: root/plugin/autopath/autopath_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-05-07 22:47:25 +0100
committerGravatar Yong Tang <yong.tang.github@outlook.com> 2018-05-07 23:47:25 +0200
commit643550eabe37176fd27c8aa9263c8c4206be066d (patch)
tree6dd27292218b96176e3fd314d7251f98e41802f3 /plugin/autopath/autopath_test.go
parent15d989e294dbfd29bb3e8083190f1bc68bcd170c (diff)
downloadcoredns-643550eabe37176fd27c8aa9263c8c4206be066d.tar.gz
coredns-643550eabe37176fd27c8aa9263c8c4206be066d.tar.zst
coredns-643550eabe37176fd27c8aa9263c8c4206be066d.zip
presubmit: check for uppercase (#1774)
Another thing we can test automatically, we sorta settled on using an uppercase letter in in t.Log and t.Fatal calls. Let's just check for this.
Diffstat (limited to 'plugin/autopath/autopath_test.go')
-rw-r--r--plugin/autopath/autopath_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/autopath/autopath_test.go b/plugin/autopath/autopath_test.go
index a92ea4573..4857e5c8a 100644
--- a/plugin/autopath/autopath_test.go
+++ b/plugin/autopath/autopath_test.go
@@ -52,7 +52,7 @@ func TestAutoPath(t *testing.T) {
rec := dnstest.NewRecorder(&test.ResponseWriter{})
_, err := ap.ServeDNS(ctx, rec, m)
if err != nil {
- t.Errorf("expected no error, got %v\n", err)
+ t.Errorf("Expected no error, got %v\n", err)
continue
}
@@ -97,11 +97,11 @@ func TestAutoPathNoAnswer(t *testing.T) {
rec := dnstest.NewRecorder(&test.ResponseWriter{})
rcode, err := ap.ServeDNS(ctx, rec, m)
if err != nil {
- t.Errorf("expected no error, got %v\n", err)
+ t.Errorf("Expected no error, got %v\n", err)
continue
}
if plugin.ClientWrite(rcode) {
- t.Fatalf("expected no client write, got one for rcode %d", rcode)
+ t.Fatalf("Expected no client write, got one for rcode %d", rcode)
}
}
}