Skip to content

Commit

Permalink
fix unitests
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAlvo1 committed Nov 21, 2024
1 parent 52012ed commit a1d06cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/commands/util/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func TestGetConfigFilePath(t *testing.T) {
}

func TestWriteSingleConfigKeyToExistingFile(t *testing.T) {
configuration.LoadConfiguration()
configFilePath, _ := configuration.GetConfigFilePath()
err := configuration.WriteSingleConfigKey(configFilePath, cxAscaPort, 0)
assert.NilError(t, err)
Expand All @@ -69,6 +70,7 @@ func TestWriteSingleConfigKeyToNonExistingFile(t *testing.T) {
}

func TestChangedOnlyAscaPortInConfigFile(t *testing.T) {
configuration.LoadConfiguration()
configFilePath, _ := configuration.GetConfigFilePath()

oldConfig, err := configuration.LoadConfig(configFilePath)
Expand Down

0 comments on commit a1d06cd

Please sign in to comment.