Skip to content

Commit 2c1e162

Browse files
Clean up http response body
1 parent 8e14df8 commit 2c1e162

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

graphql/e2e/federation/federation_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ func TestMain(m *testing.M) {
6969
break
7070
}
7171
}
72+
if resp != nil && resp.Body != nil {
73+
resp.Body.Close()
74+
}
7275
if i == maxRetries-1 {
7376
x.Panic(fmt.Errorf("failed to deploy schema to alpha2 after %d retries", maxRetries))
7477
}

0 commit comments

Comments
 (0)