summaryrefslogtreecommitdiffhomepage
path: root/caddyhttp/errors/errors_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'caddyhttp/errors/errors_test.go')
-rw-r--r--caddyhttp/errors/errors_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddyhttp/errors/errors_test.go b/caddyhttp/errors/errors_test.go
index 591d8d949..0409eaa0a 100644
--- a/caddyhttp/errors/errors_test.go
+++ b/caddyhttp/errors/errors_test.go
@@ -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) {