mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-26 16:37:13 +09:00
Merge pull request #1077 from clusterio/fix/factorio-server-test-port
Avoid random UDP port collisions in FactorioServer tests
This commit is contained in:
1 parent
ef943f22a4
commit
6afc3c7821
1 file changed
+2
@@ -40,6 +40,8 @@ describe("Integration of host/src/server", function() {
|
|||||||
describe("class FactorioServer", function() {
|
describe("class FactorioServer", function() {
|
||||||
let writePath = path.join("temp", "test", "integration");
|
let writePath = path.join("temp", "test", "integration");
|
||||||
let server = new FactorioServer(factorioDir, writePath, {});
|
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;
|
let logFile;
|
||||||
|
|
||||||
before(async function() {
|
before(async function() {
|
||||||
|
|||||||
Reference in new issue
Block a user