Skip slaveUpdateEventHandler test on Windows

Due to the lack of a simple way to automate graceful shutdown of a slave
on Windows causing the test to be unreliable, skip it on Windows.
This commit is contained in:
Hornwitser committed 2021-06-21 16:59:04 +02:00
1 parent 122bab303d
commit 8dc1415404
1 file changed
+6
+6
View File
@@ -65,6 +65,12 @@ describe("Integration of Clusterio", function() {
describe("clusterioslave", function() {
describe("slaveUpdateEventHandler()", function() {
it("should trigger when a new slave is added", async function() {
// On windows there's currently no way to automate graceful shutdown of the slave
// process as CTRL+C is some weird terminal thing and SIGINT isn't a thing.
if (process.platform === "win32") {
this.skip();
}
slowTest(this);
getControl().slaveUpdates = [];
let config = "alt-slave-config.json";