diff --git a/tests/Tgstation.Server.Tests/Live/TestLiveServer.cs b/tests/Tgstation.Server.Tests/Live/TestLiveServer.cs index 994cba401f..f4d9295c59 100644 --- a/tests/Tgstation.Server.Tests/Live/TestLiveServer.cs +++ b/tests/Tgstation.Server.Tests/Live/TestLiveServer.cs @@ -81,7 +81,21 @@ namespace Tgstation.Server.Tests.Live if (port.HasValue) result = result.Where(x => { - if (GetCommandLine(x)?.Contains($"-port {port.Value}") ?? false) + string portString = null; + switch (engineType) + { + case EngineType.OpenDream: + portString = $"--cvar net.port={port.Value}"; + break; + case EngineType.Byond: + portString = $"-port {port.Value}"; + break; + default: + Assert.Fail($"Unknown engine type: {engineType}"); + break; + } + + if (GetCommandLine(x)?.Contains(portString) ?? false) return true; x.Dispose();