mirror of
https://github.com/gin-gonic/gin.git
synced 2026-01-14 02:56:58 +08:00
Merge 4ea7d51deac965727d145929eb0e8f812fb334f8 into d1a15347b1e45a8ee816193d3578a93bfd73b70f
This commit is contained in:
commit
78f4c57b64
@ -84,6 +84,10 @@ func TestResponseWriterWriteHeadersNow(t *testing.T) {
|
||||
writer.size = 10
|
||||
w.WriteHeaderNow()
|
||||
assert.Equal(t, 10, w.Size())
|
||||
|
||||
w.WriteHeader(http.StatusOK)
|
||||
assert.Equal(t, http.StatusMultipleChoices, w.Status())
|
||||
assert.Equal(t, http.StatusMultipleChoices, testWriter.Code)
|
||||
}
|
||||
|
||||
func TestResponseWriterWrite(t *testing.T) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user