Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Nov 10, 2024
1 parent 197779f commit f7a500b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/commands/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,13 @@ func TestCommandName(t *testing.T) {
// Test when the environment variable is not set
err := os.Unsetenv(coreutils.UsageOidcConfigured)
assert.NoError(t, err)
assert.Equal(t, "config", cc.CommandName())
assert.Equal(t, ConfigCommandName, cc.CommandName())

// Test when the environment variable is set
err = os.Setenv(coreutils.UsageOidcConfigured, "true")
assert.NoError(t, err)

assert.Equal(t, "config_oidc", cc.CommandName())
assert.Equal(t, ConfigOIDCConfiguredCommandName, cc.CommandName())

// Clean up
err = os.Unsetenv(coreutils.UsageOidcConfigured)
Expand Down

0 comments on commit f7a500b

Please sign in to comment.