mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 01:04:15 -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:
@@ -29,7 +29,7 @@ func TestConfig(t *testing.T) {
|
||||
} else if err != nil || conf.target != c.path ||
|
||||
conf.full != c.full || conf.socket != c.socket {
|
||||
|
||||
t.Errorf("expected: %+v\nhave: %+v\nerror: %s\n", c, conf, err)
|
||||
t.Errorf("Expected: %+v\nhave: %+v\nerror: %s\n", c, conf, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user