From 5600dceaf69b2f5d227c824857fe4d1363923014 Mon Sep 17 00:00:00 2001 From: Carsten Klein Date: Sat, 6 Oct 2018 21:40:55 +0200 Subject: [PATCH] reduce test timeouts on appveyor since signals have no impact --- test/child-process.js | 2 -- test/outband/issue121.js | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/child-process.js b/test/child-process.js index ce189e2..8658b29 100644 --- a/test/child-process.js +++ b/test/child-process.js @@ -48,8 +48,6 @@ function _doSpawn(commandArgs, cb) { child = spawn(node_path, commandArgs); child.stdin.end(); - // TODO we no longer support node 0.6 - // Cannot use 'close' event because not on node-0.6. function _close() { var stderr = _bufferConcat(stderrBufs).toString(), diff --git a/test/outband/issue121.js b/test/outband/issue121.js index 927f11f..762a71a 100644 --- a/test/outband/issue121.js +++ b/test/outband/issue121.js @@ -11,6 +11,10 @@ tmp.setGracefulCleanup(); // https://github.com/raszi/node-tmp/issues/121 module.exports = function (signal) { + +console.log(arguments); +throw new Error("SHIZE: " + signal); + try { fixture.apply(this, [tmp.dirSync({ unsafeCleanup: true }), tmp]); } @@ -20,7 +24,7 @@ module.exports = function (signal) { } // make sure that the process keeps running - setTimeout(function () {}, 1000000); + setTimeout(function () {}, 10000); this.kill(signal); };