test that the httpdump data is not being printed

This commit is contained in:
Dustin 2018-09-22 21:33:36 -07:00
parent 21354b18b5
commit ac147f054b

View File

@ -27,6 +27,7 @@ func TestPanicInHandler(t *testing.T) {
assert.Contains(t, buffer.String(), "panic recovered") assert.Contains(t, buffer.String(), "panic recovered")
assert.Contains(t, buffer.String(), "Oupps, Houston, we have a problem") assert.Contains(t, buffer.String(), "Oupps, Houston, we have a problem")
assert.Contains(t, buffer.String(), "TestPanicInHandler") assert.Contains(t, buffer.String(), "TestPanicInHandler")
assert.NotContains(t, buffer.String(), "GET /recovery")
// Debug mode prints the request // Debug mode prints the request
SetMode(DebugMode) SetMode(DebugMode)