diff --git a/featureflags/client_test.go b/featureflags/client_test.go index 5eb1974e..63665278 100644 --- a/featureflags/client_test.go +++ b/featureflags/client_test.go @@ -36,6 +36,7 @@ func TestGetFeatureFlagClient(t *testing.T) { t.Run("creates singleton client", func(t *testing.T) { os.Setenv("FLAGSMITH_SERVER_SIDE_ENVIRONMENT_KEY", "test-key") + defer os.Unsetenv("FLAGSMITH_SERVER_SIDE_ENVIRONMENT_KEY") // Get client first time client1 := featureflags.GetFeatureFlagClient()