[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 93509690be
commit d1d016d61d
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 {
t.Fatalf("err: %v", err)
}
defer resp.Body.Close()
// Verify the response
if resp.StatusCode != 200 {