From 22c0b30d5f7468c2477291419bee3e88dfba490c Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sat, 2 Jun 2018 19:48:39 +0100 Subject: 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.. as (because dump regexp) this also grep over non test files. --- plugin/file/lookup_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin/file/lookup_test.go') diff --git a/plugin/file/lookup_test.go b/plugin/file/lookup_test.go index 897b3aa90..97cae6b0e 100644 --- a/plugin/file/lookup_test.go +++ b/plugin/file/lookup_test.go @@ -117,7 +117,7 @@ func TestLookup(t *testing.T) { rec := dnstest.NewRecorder(&test.ResponseWriter{}) _, err := fm.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) return } -- cgit v1.2.3