errors: Fix test

This commit is contained in:
Matthew Holt 2020-01-15 09:57:23 -07:00
parent b6ca782c99
commit 3c8837163d
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5

View File

@ -153,7 +153,7 @@ func TestVisibleErrorWithPanic(t *testing.T) {
body := rec.Body.String()
if !strings.Contains(body, "[PANIC /] caddyhttp/errors/errors_test.go") {
if !strings.Contains(body, "[PANIC /]") {
t.Errorf("Expected response body to contain error log line, but it didn't:\n%s", body)
}
if !strings.Contains(body, panicMsg) {