diff options
author | 2018-05-07 22:47:25 +0100 | |
---|---|---|
committer | 2018-05-07 23:47:25 +0200 | |
commit | 643550eabe37176fd27c8aa9263c8c4206be066d (patch) | |
tree | 6dd27292218b96176e3fd314d7251f98e41802f3 /plugin/proxy/dnstap_test.go | |
parent | 15d989e294dbfd29bb3e8083190f1bc68bcd170c (diff) | |
download | coredns-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/proxy/dnstap_test.go')
-rw-r--r-- | plugin/proxy/dnstap_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/proxy/dnstap_test.go b/plugin/proxy/dnstap_test.go index b31ed451b..08cbd98a7 100644 --- a/plugin/proxy/dnstap_test.go +++ b/plugin/proxy/dnstap_test.go @@ -24,13 +24,13 @@ func testCase(t *testing.T, ex Exchanger, q, r *dns.Msg, datq, datr *msg.Builder t.Fatal(err) } if len(ctx.Trap) != 2 { - t.Fatalf("messages: %d", len(ctx.Trap)) + t.Fatalf("Messages: %d", len(ctx.Trap)) } if !test.MsgEqual(ctx.Trap[0], tapq) { - t.Errorf("want: %v\nhave: %v", tapq, ctx.Trap[0]) + t.Errorf("Want: %v\nhave: %v", tapq, ctx.Trap[0]) } if !test.MsgEqual(ctx.Trap[1], tapr) { - t.Errorf("want: %v\nhave: %v", tapr, ctx.Trap[1]) + t.Errorf("Want: %v\nhave: %v", tapr, ctx.Trap[1]) } } |