Add tests

This commit is contained in:
Cooldude2606 committed 2025-07-16 01:25:27 +01:00
1 parent 449bd68fab
commit 88ca4563a8
3 files changed
+87 -48

No files matched your search

+3
View File
@@ -1302,6 +1302,9 @@ end`.replace(/\r?\n/g, " ");
}
async handleInstanceRestartRequest(request: lib.InstanceRestartRequest) {
if (this._status !== "running") {
throw new Error("Instance is not running");
}
await this.stop();
// Stopping invalidates this instance object, a new one must be created by the host
// To do this we simulate a waking an instance and sending a start request