mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 00:23:12 +09:00
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:
1 parent
122bab303d
commit
8dc1415404
1 file changed
+6
@@ -65,6 +65,12 @@ describe("Integration of Clusterio", function() {
|
|||||||
describe("clusterioslave", function() {
|
describe("clusterioslave", function() {
|
||||||
describe("slaveUpdateEventHandler()", function() {
|
describe("slaveUpdateEventHandler()", function() {
|
||||||
it("should trigger when a new slave is added", async 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);
|
slowTest(this);
|
||||||
getControl().slaveUpdates = [];
|
getControl().slaveUpdates = [];
|
||||||
let config = "alt-slave-config.json";
|
let config = "alt-slave-config.json";
|
||||||
|
|||||||
Reference in new issue
Block a user