mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 15:04:52 +09:00
Disable user verification in start-all and auto_start tests
Factorio contacts auth.factorio.com on startup when require_user_verification is enabled, which made these tests fail offline. Match the other integration tests by turning it off. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0cfa048d42
commit
ffc79ea0e7
2 files changed
+10
No files matched your search
@@ -301,6 +301,9 @@ describe("Integration of Clusterio", function() {
|
||||
await execCtl("instance create alt-start --id 97");
|
||||
await execCtl("instance assign alt-start 5");
|
||||
await execCtl("instance config set alt-start instance.auto_start true");
|
||||
const visibility = jsonArg({ lan: false, public: false });
|
||||
await execCtlProcess(`instance config set-prop alt-start factorio.settings visibility ${visibility}`);
|
||||
await execCtl("instance config set-prop alt-start factorio.settings require_user_verification false");
|
||||
await stopAltHost(hostProcess);
|
||||
hostProcess = await spawnAltHost();
|
||||
// Stop the host immediatly to test the handling of stopping
|
||||
|
||||
@@ -241,6 +241,13 @@ describe("start-all and stop-all commands", function() {
|
||||
await execCtl(`instance assign ${testInstName1} 4`);
|
||||
await execCtl(`instance assign ${testInstName2} 4`);
|
||||
await execCtl(`instance assign ${testInstName3} 4`);
|
||||
const visibility = JSON.stringify({ lan: false, public: false }).replace(
|
||||
/"/g, process.platform === "win32" ? '""' : '\\"'
|
||||
);
|
||||
for (const name of [testInstName1, testInstName2, testInstName3]) {
|
||||
await execCtlProcess(`instance config set-prop ${name} factorio.settings visibility "${visibility}"`);
|
||||
await execCtl(`instance config set-prop ${name} factorio.settings require_user_verification false`);
|
||||
}
|
||||
|
||||
// Exclude testInstName3 from start-all by default
|
||||
await execCtl(`instance config set ${testInstName3} instance.exclude_from_start_all true`);
|
||||
|
||||
Reference in new issue
Block a user