mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
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.
This commit is contained in:
2
plugin/cache/cache_test.go
vendored
2
plugin/cache/cache_test.go
vendored
@@ -175,7 +175,7 @@ func TestCache(t *testing.T) {
|
||||
ok := i != nil
|
||||
|
||||
if ok != tc.shouldCache {
|
||||
t.Errorf("cached message that should not have been cached: %s", state.Name())
|
||||
t.Errorf("Cached message that should not have been cached: %s", state.Name())
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user