We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
httptest
1 parent 9562430 commit 953382fCopy full SHA for 953382f
1 file changed
github/github_test.go
@@ -477,6 +477,7 @@ func TestWithAuthToken(t *testing.T) {
477
gotReq = true
478
headerVal = r.Header.Get("Authorization")
479
}))
480
+ t.Cleanup(srv.Close)
481
_, err := c.Get(srv.URL)
482
assertNilError(t, err)
483
if !gotReq {
@@ -517,6 +518,7 @@ func TestWithAuthToken(t *testing.T) {
517
518
519
_, ifAuthorizationSet = r.Header["Authorization"]
520
521
522
_, err := c.client.Get(srv.URL)
523
524
0 commit comments