We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb08afd commit eb7ec1bCopy full SHA for eb7ec1b
1 file changed
test/parallel/test-timers-promisified.js
@@ -348,28 +348,6 @@ process.on('multipleResolves', common.mustNotCall());
348
assert.strictEqual(loopCount, 5);
349
}));
350
}
351
-
352
- {
353
- // Check that if we abort when we have some callbacks left,
354
- // we actually call them.
355
- const controller = new AbortController();
356
- const { signal } = controller;
357
- const delay = 10;
358
- let totalIterations = 0;
359
- const timeoutLoop = runInterval(async (iterationNumber) => {
360
- if (iterationNumber === 2) {
361
- await setTimeout(delay * 2);
362
- controller.abort();
363
- }
364
- if (iterationNumber > totalIterations) {
365
- totalIterations = iterationNumber;
366
367
- }, delay, signal);
368
369
- timeoutLoop.catch(common.mustCall(() => {
370
- assert.ok(totalIterations >= 3, `iterations was ${totalIterations} < 3`);
371
- }));
372
373
374
375
{
0 commit comments