mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 00:04:15 -04:00
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.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user