mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-17 05:42:09 +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")
|
performRequest(router, "GET", "/logged")
|
||||||
assert.Contains(t, buffer.String(), "200")
|
assert.Contains(t, buffer.String(), "200")
|
||||||
|
|
||||||
|
buffer.Reset()
|
||||||
performRequest(router, "GET", "/skipped")
|
performRequest(router, "GET", "/skipped")
|
||||||
assert.Contains(t, buffer.String(), "")
|
assert.Contains(t, buffer.String(), "")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user