Skip to content

Commit

Permalink
reduce test timeouts on appveyor since signals have no impact
Browse files Browse the repository at this point in the history
  • Loading branch information
silkentrance committed Mar 13, 2019
1 parent 69b1115 commit 5600dce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions test/child-process.js
Expand Up @@ -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(),
Expand Down
6 changes: 5 additions & 1 deletion test/outband/issue121.js
Expand Up @@ -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]);
}
Expand All @@ -20,7 +24,7 @@ module.exports = function (signal) {
}

// make sure that the process keeps running
setTimeout(function () {}, 1000000);
setTimeout(function () {}, 10000);

this.kill(signal);
};

0 comments on commit 5600dce

Please sign in to comment.