Skip to content

Commit

Permalink
chore(featureflags): minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dhawal1248 committed Jan 20, 2025
1 parent f107f10 commit 8d48ca5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions featureflags/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Check failure on line 38 in featureflags/client_test.go

View workflow job for this annotation

GitHub Actions / lint

os.Setenv() can be replaced by `t.Setenv()` in anonymous function (tenv)
defer os.Unsetenv("FLAGSMITH_SERVER_SIDE_ENVIRONMENT_KEY")

// Get client first time
client1 := featureflags.GetFeatureFlagClient()
Expand Down

0 comments on commit 8d48ca5

Please sign in to comment.