mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 15:24: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
@@ -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