From 9250a77d7e5a8b5bd0f86f2066bfa4b239a9bd30 Mon Sep 17 00:00:00 2001 From: et-nik Date: Sun, 25 Feb 2024 17:02:31 +0100 Subject: [PATCH] fix tests --- .../app/game_server_commands/install_server_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/app/game_server_commands/install_server_test.go b/internal/app/game_server_commands/install_server_test.go index 63b1797..b73955d 100644 --- a/internal/app/game_server_commands/install_server_test.go +++ b/internal/app/game_server_commands/install_server_test.go @@ -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") } } @@ -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) { @@ -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") } }