diff --git a/oidc/oidc_test.go b/oidc/oidc_test.go index 27415dd..d31570f 100644 --- a/oidc/oidc_test.go +++ b/oidc/oidc_test.go @@ -701,6 +701,7 @@ func TestVerifierAlg(t *testing.T) { }, } srv := httptest.NewServer(ts) + defer srv.Close() ts.baseURL = srv.URL ctx := context.Background() @@ -782,6 +783,7 @@ func TestCanceledContext(t *testing.T) { }, } srv := httptest.NewServer(ts) + defer srv.Close() ts.baseURL = srv.URL ctx, cancel := context.WithCancel(context.Background())