From 47375ec07597addcbc32f48ec9a08679a896fe1c Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Tue, 15 Aug 2023 18:35:23 +0200 Subject: [PATCH] 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. --- test/integration/clusterio.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/integration/clusterio.js b/test/integration/clusterio.js index 864a432f..6ac2a57d 100644 --- a/test/integration/clusterio.js +++ b/test/integration/clusterio.js @@ -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) {