diff options
author | Matthew Holt <[email protected]> | 2020-01-15 09:57:23 -0700 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2020-01-15 09:57:23 -0700 |
commit | 3c8837163d0fbb26341c96d4e503760ad7ebad74 (patch) | |
tree | ce4e1596841467755f172bf62ccfed3c33396fe4 | |
parent | b6ca782c99e902716569511df9d8afb1cb39d8b8 (diff) | |
download | caddy-3c8837163d0fbb26341c96d4e503760ad7ebad74.tar.gz caddy-3c8837163d0fbb26341c96d4e503760ad7ebad74.zip |
errors: Fix test
-rw-r--r-- | caddyhttp/errors/errors_test.go | 2 |
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) { |