mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 15:30:41 +09:00
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:
1 parent
cbf2b10782
commit
0fb9e793d7
5 files changed
+215
-33
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user