Skip to content

Commit

Permalink
fix: call resp.Body.Close even it's unnecessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
kvii committed Feb 4, 2024
1 parent 9121ca2 commit 582e3ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions transport/http/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ func TestContextResult(t *testing.T) {
}

resp := res.Result()
defer resp.Body.Close()
if resp.StatusCode != tc.code {
t.Fatalf("expected %d, got %d", tc.code, resp.StatusCode)
}
Expand Down

0 comments on commit 582e3ee

Please sign in to comment.