mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 21:32:11 +08:00
fix: buffer should reset when test logger output(more)
This commit is contained in:
parent
0c7ed7702a
commit
6793123b61
@ -135,6 +135,7 @@ func TestSkippingPaths(t *testing.T) {
|
||||
performRequest(router, "GET", "/logged")
|
||||
assert.Contains(t, buffer.String(), "200")
|
||||
|
||||
buffer.Reset()
|
||||
performRequest(router, "GET", "/skipped")
|
||||
assert.Contains(t, buffer.String(), "")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user