mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 12:08:28 +08:00
errors: Fix test
This commit is contained in:
parent
b6ca782c99
commit
3c8837163d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user