From efd776fb137eff6a95f8a6aa6654b0a20b8f97ac Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 2 Sep 2018 15:39:43 +0200 Subject: [PATCH] test: fix flaky async-hooks/test-callback-error Remove an unnecessary timeout. Fixes: https://github.com/nodejs/node/issues/15985 --- test/async-hooks/test-callback-error.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/async-hooks/test-callback-error.js b/test/async-hooks/test-callback-error.js index 450f34bee1021a..b36aa5939a411b 100644 --- a/test/async-hooks/test-callback-error.js +++ b/test/async-hooks/test-callback-error.js @@ -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);