fix(server): silence errcheck on deferred Body.Close
This commit is contained in:
@@ -18,7 +18,7 @@ func TestHealthz(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("GET /healthz: %v", err)
|
t.Fatalf("GET /healthz: %v", err)
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer func() { _ = resp.Body.Close() }()
|
||||||
|
|
||||||
if resp.StatusCode != http.StatusOK {
|
if resp.StatusCode != http.StatusOK {
|
||||||
t.Errorf("status = %d, want 200", resp.StatusCode)
|
t.Errorf("status = %d, want 200", resp.StatusCode)
|
||||||
|
|||||||
Reference in New Issue
Block a user