Skip unknown instance status check on Windows

The unknown status happens when an instance is on a host that has
disconnected, but since alt-host is not spawned in the tests on
Windows this status is not observed.
This commit is contained in:
Hornwitser committed 2023-08-15 18:44:53 +02:00
1 parent 115cb3fd5d
commit 47375ec075
1 file changed
+5 -1
+5 -1
View File
@@ -788,9 +788,13 @@ describe("Integration of Clusterio", function() {
it("should have triggered for the previous instance status updates", function() {
slowTest(this);
let statusesToCheck = new Set([
"unassigned", "unknown", "stopped", "creating_save", "exporting_data",
"unassigned", "stopped", "creating_save", "exporting_data",
"starting", "running", "stopping", "deleted",
]);
// Windows does not see the unknown status because alt-host is not spawned.
if (process.platform !== "win32") {
statusesToCheck.add("unknown");
}
let statusesNotSeen = new Set(statusesToCheck);
for (let update of getControl().instanceUpdates) {