From ac147f054b7588587c14e5b16742e56a75a2bbfe Mon Sep 17 00:00:00 2001 From: Dustin Date: Sat, 22 Sep 2018 21:33:36 -0700 Subject: [PATCH] test that the httpdump data is not being printed --- recovery_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/recovery_test.go b/recovery_test.go index aac5a54f..7d422b74 100644 --- a/recovery_test.go +++ b/recovery_test.go @@ -27,6 +27,7 @@ func TestPanicInHandler(t *testing.T) { assert.Contains(t, buffer.String(), "panic recovered") assert.Contains(t, buffer.String(), "Oupps, Houston, we have a problem") assert.Contains(t, buffer.String(), "TestPanicInHandler") + assert.NotContains(t, buffer.String(), "GET /recovery") // Debug mode prints the request SetMode(DebugMode)