mirror of
https://github.com/caddyserver/caddy.git
synced 2026-06-06 22:15:18 -04:00
errors: Fix test
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user