From 643550eabe37176fd27c8aa9263c8c4206be066d Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Mon, 7 May 2018 22:47:25 +0100 Subject: 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. --- plugin/file/file_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/file/file_test.go') diff --git a/plugin/file/file_test.go b/plugin/file/file_test.go index 02668785b..0e4050e38 100644 --- a/plugin/file/file_test.go +++ b/plugin/file/file_test.go @@ -14,10 +14,10 @@ func BenchmarkFileParseInsert(b *testing.B) { func TestParseNoSOA(t *testing.T) { _, err := Parse(strings.NewReader(dbNoSOA), "example.org.", "stdin", 0) if err == nil { - t.Fatalf("zone %q should have failed to load", "example.org.") + t.Fatalf("Zone %q should have failed to load", "example.org.") } if !strings.Contains(err.Error(), "no SOA record") { - t.Fatalf("zone %q should have failed to load with no soa error: %s", "example.org.", err) + t.Fatalf("Zone %q should have failed to load with no soa error: %s", "example.org.", err) } } -- cgit v1.2.3