mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 07:33:12 +09:00
Merge pull request #384 from Hornwitser/test-fixes
Fix tests on Windows and remove internet requirement to pass
This commit is contained in:
3 files changed
+15
No files matched your search
@@ -176,10 +176,18 @@ describe("Integration of Clusterio", function() {
|
||||
|
||||
describe("instance create", function() {
|
||||
it("creates the instance", async function() {
|
||||
this.timeout(6000);
|
||||
await execCtl("instance create test --id 44");
|
||||
let instances = await getInstances();
|
||||
assert(instances.has(44), "instance was not created");
|
||||
assert.equal(instances.get(44).status, "unassigned", "incorrect instance status");
|
||||
|
||||
// Make sure the following tests does not fail due to not having internet
|
||||
let value = JSON.stringify({ lan: true, public: false }).replace(
|
||||
/"/g, process.platform === "win32" ? '""' : '\\"'
|
||||
);
|
||||
await execCtl(`instance config set-prop test factorio.settings visibility "'${value}'"`);
|
||||
await execCtl("instance config set-prop test factorio.settings require_user_verification false");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user