[LINT] Close resp.Body to avoid linter complaining (#7600)

This commit is contained in:
Pierre Souchay 2020-04-06 15:11:04 +02:00 committed by GitHub
parent ab14c969cd
commit a7fbf003c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ func TestUiIndex(t *testing.T) {
if err != nil { if err != nil {
t.Fatalf("err: %v", err) t.Fatalf("err: %v", err)
} }
defer resp.Body.Close()
// Verify the response // Verify the response
if resp.StatusCode != 200 { if resp.StatusCode != 200 {