Merge pull request #991 from bbassie/feature/clone-instance-save

Add save copying and start options when creating an instance
This commit is contained in:
Cooldude2606 authored and GitHub committed 2026-09-09 20:03:27 +01:00
commit 7987a5d925
8 files changed
+205 -17

No files matched your search

+14
View File
@@ -914,6 +914,20 @@ describe("Integration of Clusterio", function() {
}
assert(received, "InstanceSaveDetailsUpdatesEvent not sent");
});
it("should save the running game with save-game", async function() {
slowTest(this);
getControl().saveUpdates = [];
await execCtl("instance save-game test");
let received = false;
for (let x = 0; x < 10; x++) {
if (getControl().saveUpdates.length) {
received = true;
break;
}
await wait(100);
}
assert(received, "InstanceSaveDetailsUpdatesEvent not sent");
});
it("should prevent execution of script commands when disabled", async function() {
slowTest(this);
await execCtl("instance send-rcon test /c");