mirror of
https://github.com/gin-gonic/gin.git
synced 2026-01-12 09:36:59 +08:00
Merge 4ea7d51deac965727d145929eb0e8f812fb334f8 into 9914178584e42458ff7d23891463a880f58c9d86
This commit is contained in:
commit
9ae31f222d
@ -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