Fix SCUM query port startup input

This commit is contained in:
npc0-hue
2026-09-07 14:56:12 +08:00
parent 5be7ec112e
commit 86167a3a1b
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ func TestApplyPluginCreateDefaultsUsesPluginFields(t *testing.T) {
plugin := scumDeploymentTestPlugin()
definition := applyPluginCreateDefaults(plugin, domain.ServerDeploymentDefinition{Mode: domain.ServerDeploymentModeGuided, CreateInputs: map[string]string{"serverName": "Moon"}})
if definition.CreateInputs["serverName"] != "Moon" || definition.CreateInputs["gamePort"] != "7779" || definition.CreateInputs["maxPlayers"] != "128" {
if definition.CreateInputs["serverName"] != "Moon" || definition.CreateInputs["gamePort"] != "7779" || definition.CreateInputs["queryPort"] != "27015" || definition.CreateInputs["maxPlayers"] != "128" {
t.Fatalf("expected plugin defaults to fill missing guided inputs: %+v", definition.CreateInputs)
}
}