summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2020-01-15 09:57:23 -0700
committerMatthew Holt <[email protected]>2020-01-15 09:57:23 -0700
commit3c8837163d0fbb26341c96d4e503760ad7ebad74 (patch)
treece4e1596841467755f172bf62ccfed3c33396fe4
parentb6ca782c99e902716569511df9d8afb1cb39d8b8 (diff)
downloadcaddy-3c8837163d0fbb26341c96d4e503760ad7ebad74.tar.gz
caddy-3c8837163d0fbb26341c96d4e503760ad7ebad74.zip
errors: Fix test
-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) {