Skip to content

Commit

Permalink
test: fix flaky async-hooks/test-callback-error
Browse files Browse the repository at this point in the history
Remove an unnecessary timeout.

Fixes: nodejs#15985
  • Loading branch information
addaleax committed Sep 2, 2018
1 parent a55c57b commit efd776f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/async-hooks/test-callback-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,7 @@ assert.ok(!arg);
stderr += data;
});

const tO = setTimeout(() => {
console.log(stderr);
child.kill('SIGKILL');
process.exit(1);
}, 15 * 1000);
tO.unref();

child.on('close', (code, signal) => {
clearTimeout(tO);
if (common.isWindows) {
assert.strictEqual(code, 134);
assert.strictEqual(signal, null);
Expand Down

0 comments on commit efd776f

Please sign in to comment.