mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 12:12:12 +08:00
fix lint error
This commit is contained in:
parent
5cd431d6f6
commit
faae1ff70b
@ -174,11 +174,12 @@ func TestResponseWriterHijackAfterWrite(t *testing.T) {
|
||||
require.NoError(t, tc.action(w), "unexpected error during pre-hijack action")
|
||||
|
||||
_, _, hijackErr := w.Hijack()
|
||||
assert.ErrorIs(t, hijackErr, tc.expectError, "unexpected error from Hijack()")
|
||||
require.ErrorIs(t, hijackErr, tc.expectError, "unexpected error from Hijack()")
|
||||
assert.Equal(t, tc.expectHijack, hijacker.hijacked, "unexpected hijacker.hijacked state")
|
||||
assert.Equal(t, tc.expectWritten, w.Written(), "unexpected w.Written() state")
|
||||
})
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
||||
func TestResponseWriterFlush(t *testing.T) {
|
||||
testServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user