mirror of
https://github.com/gin-gonic/gin.git
synced 2025-08-06 15:50:30 +08:00
Fixed recovery unit tests
This commit is contained in:
@ -23,7 +23,8 @@ func TestPanicInHandler(t *testing.T) {
|
||||
w := performRequest(router, "GET", "/recovery")
|
||||
// TEST
|
||||
assert.Equal(t, w.Code, 500)
|
||||
assert.Contains(t, buffer.String(), "Panic recovery -> Oupps, Houston, we have a problem")
|
||||
assert.Contains(t, buffer.String(), "GET /recovery")
|
||||
assert.Contains(t, buffer.String(), "Oupps, Houston, we have a problem")
|
||||
assert.Contains(t, buffer.String(), "TestPanicInHandler")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user