Merge pull request #1077 from clusterio/fix/factorio-server-test-port

Avoid random UDP port collisions in FactorioServer tests
This commit is contained in:
Arvids Godjuks authored and GitHub committed 2026-10-14 19:27:31 +01:00
1 parent ef943f22a4
commit 6afc3c7821
1 file changed
+2
+2
View File
@@ -40,6 +40,8 @@ describe("Integration of host/src/server", function() {
describe("class FactorioServer", function() {
let writePath = path.join("temp", "test", "integration");
let server = new FactorioServer(factorioDir, writePath, {});
// Let Factorio bind an OS-assigned UDP port instead of guessing a free one.
server.gamePort = 0;
let logFile;
before(async function() {