Stabilize player-list integration tests and RCON fixtures (#1117)

* Wait for player list replication in integration tests

* Select available RCON ports before starting Factorio

* Document zero as automatic RCON port allocation

* Address review wording and test organization

* Restrict port collision hardening to integration fixtures
This commit is contained in:
Arvids Godjuks authored and GitHub committed 2026-10-18 22:01:43 +03:00
1 parent cbf2b10782
commit 0fb9e793d7
5 files changed
+215 -33

No files matched your search

+7
View File
@@ -10,6 +10,7 @@ import { logger } from "@clusterio/lib";
import { factorioDir, requiresFactorio } from "./index.js";
import { slowTest } from "../common.js";
import { getTestRconPort } from "./rcon_port.js";
describe("Integration of host/src/server", function() {
@@ -71,6 +72,12 @@ describe("Integration of host/src/server", function() {
logFile.end();
});
beforeEach(async function() {
if (server.pid === null) {
server.rconPort = await getTestRconPort();
}
});
describe(".exampleSettings()", function() {
let settings;
it("returns an object", async function() {