From cdec34ee6d91235bd08bb5202711990013b0cd5b Mon Sep 17 00:00:00 2001 From: vymoiseenkov Date: Fri, 27 Jun 2025 14:23:30 +0300 Subject: [PATCH 1/2] fix: added close for test http servers --- oidc/oidc_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oidc/oidc_test.go b/oidc/oidc_test.go index 27415dd..72ae3b5 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() @@ -783,6 +784,7 @@ func TestCanceledContext(t *testing.T) { } srv := httptest.NewServer(ts) ts.baseURL = srv.URL + defer srv.Close() ctx, cancel := context.WithCancel(context.Background()) From 66b7b391e5f07e3e0cdd58d522384400603574ca Mon Sep 17 00:00:00 2001 From: vymoiseenkov Date: Fri, 27 Jun 2025 14:25:25 +0300 Subject: [PATCH 2/2] fix: added close for test http servers --- oidc/oidc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oidc/oidc_test.go b/oidc/oidc_test.go index 72ae3b5..d31570f 100644 --- a/oidc/oidc_test.go +++ b/oidc/oidc_test.go @@ -783,8 +783,8 @@ func TestCanceledContext(t *testing.T) { }, } srv := httptest.NewServer(ts) - ts.baseURL = srv.URL defer srv.Close() + ts.baseURL = srv.URL ctx, cancel := context.WithCancel(context.Background())