diff --git a/idp/dex/provider_test.go b/idp/dex/provider_test.go index a4edf4cd4..b1749a45f 100644 --- a/idp/dex/provider_test.go +++ b/idp/dex/provider_test.go @@ -766,7 +766,7 @@ func TestNewProvider_SetsGrantTypes(t *testing.T) { DataDir: t.TempDir(), }) require.NoError(t, err) - defer func() { _ = provider.Stop(ctx) }() + defer func() { _ = provider.storage.Close() }() req := httptest.NewRequest(http.MethodGet, "/oauth2/.well-known/openid-configuration", nil) rec := httptest.NewRecorder()