From 6afc3c78215be720159ca47cbdfa23acc7c76f81 Mon Sep 17 00:00:00 2001 From: Arvids Godjuks Date: Wed, 14 Oct 2026 21:27:31 +0300 Subject: [PATCH] Merge pull request #1077 from clusterio/fix/factorio-server-test-port Avoid random UDP port collisions in FactorioServer tests --- test/integration/server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration/server.js b/test/integration/server.js index fe3d129b..b74af0e9 100644 --- a/test/integration/server.js +++ b/test/integration/server.js @@ -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() {