mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 01:57:55 +08:00
test that the httpdump data is not being printed
This commit is contained in:
parent
21354b18b5
commit
ac147f054b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user