Skip to content

Commit 807284b

Browse files
committed
style: refactor codebase for consistency and improved test coverage
- Reorder arguments in `assert.Equal` calls for consistency Signed-off-by: appleboy <[email protected]>
1 parent bc23737 commit 807284b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gzip_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ func TestGzipWithDecompressOnly(t *testing.T) {
315315
w := httptest.NewRecorder()
316316
r.ServeHTTP(w, req)
317317

318-
assert.Equal(t, w.Code, 200)
319-
assert.Equal(t, w.Header().Get(headerContentEncoding), "")
320-
assert.Equal(t, w.Body.String(), testResponse)
318+
assert.Equal(t, 200, w.Code)
319+
assert.Equal(t, "", w.Header().Get(headerContentEncoding))
320+
assert.Equal(t, testResponse, w.Body.String())
321321
}
322322

323323
func TestCustomShouldCompressFn(t *testing.T) {

0 commit comments

Comments
 (0)