add dedicated port to test server
All checks were successful
CI / lint (push) Successful in 16s
CI / fuzz (push) Successful in 1m39s
CI / test (push) Successful in 20s

This commit is contained in:
Kamal Tufekcic 2026-07-27 10:44:35 +03:00
commit f9afdadeb9

View file

@ -23,7 +23,12 @@ impl LaunchSpec {
/// The vanilla dedicated-server args to spawn `bots` alive units on `map`, in the exact order the
/// live launch requires.
pub fn args(&self, map: &str, bots: u32) -> Vec<String> {
let mut a: Vec<String> = vec!["-dedicated".into(), "-insecure".into()];
let mut a: Vec<String> = vec![
"-dedicated".into(),
"-insecure".into(),
"-port".into(),
"24015".into(),
];
for (k, v) in self.pre_map_cvars {
a.push(format!("+{k}"));
a.push((*v).into());
@ -338,6 +343,8 @@ mod tests {
let expected: Vec<String> = [
"-dedicated",
"-insecure",
"-port",
"24015",
"+game_type",
"1",
"+game_mode",