From 3c8837163d0fbb26341c96d4e503760ad7ebad74 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 15 Jan 2020 09:57:23 -0700 Subject: [PATCH] errors: Fix test --- caddyhttp/errors/errors_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {