From cfb2e0683972e0b0f09f431483e2672640da0b0f Mon Sep 17 00:00:00 2001 From: Nitzan Uziely Date: Thu, 4 Feb 2021 15:34:47 +0200 Subject: [PATCH] timers: remove flaky setInterval test PR-URL: https://github.com/nodejs/node/pull/37227 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Antoine du Hamel --- test/parallel/test-timers-promisified.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/test/parallel/test-timers-promisified.js b/test/parallel/test-timers-promisified.js index e59fda58ceea49..348f6c2ae0476d 100644 --- a/test/parallel/test-timers-promisified.js +++ b/test/parallel/test-timers-promisified.js @@ -348,28 +348,6 @@ process.on('multipleResolves', common.mustNotCall()); assert.strictEqual(loopCount, 5); })); } - - { - // Check that if we abort when we have some callbacks left, - // we actually call them. - const controller = new AbortController(); - const { signal } = controller; - const delay = 10; - let totalIterations = 0; - const timeoutLoop = runInterval(async (iterationNumber) => { - if (iterationNumber === 2) { - await setTimeout(delay * 2); - controller.abort(); - } - if (iterationNumber > totalIterations) { - totalIterations = iterationNumber; - } - }, delay, signal); - - timeoutLoop.catch(common.mustCall(() => { - assert.ok(totalIterations >= 3, `iterations was ${totalIterations} < 3`); - })); - } } {