Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
et-nik committed Feb 25, 2024
1 parent 7b1a38e commit 9250a77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/app/game_server_commands/install_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ func TestUpdateBySteam_SteamCommandWithoutValidate(t *testing.T) {

require.Nil(t, err)
if runtime.GOOS == "windows" {
executor.AssertCommand(t, "/steamcmd.exe +force_install_dir \"/test-server\" +login anonymous +app_update 90 +quit")
executor.AssertCommand(t, "steamcmd.exe +force_install_dir \"/test-server\" +login anonymous +app_update 90 +quit")
} else {
executor.AssertCommand(t, "/steamcmd.sh +force_install_dir \"/test-server\" +login anonymous +app_update 90 +quit")
executor.AssertCommand(t, "steamcmd.sh +force_install_dir \"/test-server\" +login anonymous +app_update 90 +quit")
}
}

Expand All @@ -318,7 +318,7 @@ func TestUpdateBySteam_SteamCommandWithSetConfig(t *testing.T) {
err := updater.Install(context.Background(), server, rules)

require.Nil(t, err)
executor.AssertCommand(t, "/steamcmd.sh +force_install_dir \"/work-path/test-server\" +login anonymous +app_update 90 mod czero +quit")
executor.AssertCommand(t, "steamcmd.sh +force_install_dir \"/work-path/test-server\" +login anonymous +app_update 90 mod czero +quit")
}

func TestInstallBySteam_SteamCommandWithValidate(t *testing.T) {
Expand All @@ -336,9 +336,9 @@ func TestInstallBySteam_SteamCommandWithValidate(t *testing.T) {

require.Nil(t, err)
if runtime.GOOS == "windows" {
executor.AssertCommand(t, "/steamcmd.exe +force_install_dir \"/test-server\" +login anonymous +app_update 90 validate +quit")
executor.AssertCommand(t, "steamcmd.exe +force_install_dir \"/test-server\" +login anonymous +app_update 90 validate +quit")
} else {
executor.AssertCommand(t, "/steamcmd.sh +force_install_dir \"/test-server\" +login anonymous +app_update 90 validate +quit")
executor.AssertCommand(t, "steamcmd.sh +force_install_dir \"/test-server\" +login anonymous +app_update 90 validate +quit")
}
}

Expand Down

0 comments on commit 9250a77

Please sign in to comment.