From f7a500b09bfa4dcd2225a535c708954f4e9fbdc9 Mon Sep 17 00:00:00 2001 From: delarea Date: Sun, 10 Nov 2024 14:16:22 +0200 Subject: [PATCH] Fix tests --- common/commands/config_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/commands/config_test.go b/common/commands/config_test.go index 647d2e8dc..c792635c4 100644 --- a/common/commands/config_test.go +++ b/common/commands/config_test.go @@ -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)