mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 12:12:12 +08:00
Merge 4ea7d51deac965727d145929eb0e8f812fb334f8 into 077a2f39c85700ba0823f85ed29cec0c8f2cbdfc
This commit is contained in:
commit
e00539047f
@ -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