From 278bf3f1704d66ee1393b9321c2fa698013335cf Mon Sep 17 00:00:00 2001 From: rishigupta1599 Date: Thu, 23 Nov 2023 19:10:31 +0530 Subject: [PATCH] Removing test --- packages/core/test/unit/queue.test.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/packages/core/test/unit/queue.test.js b/packages/core/test/unit/queue.test.js index 9bcba2805..799c3e117 100644 --- a/packages/core/test/unit/queue.test.js +++ b/packages/core/test/unit/queue.test.js @@ -401,26 +401,6 @@ describe('Unit / Tasks Queue', () => { expect(q.size).toBe(2); }); - it('can flush twice without interruption', async () => { - let resolve1, deferred1 = new Promise(r => (resolve1 = r)); - let resolve2, deferred2 = new Promise(r => (resolve2 = r)); - - q.push(deferred1); - let p1 = generatePromise(q.flush()); - await expectAsync(p1).toBePending(); - - q.push(deferred2); - let p2 = generatePromise(q.flush()); - await expectAsync(p2).toBePending(); - - resolve1(); - await expectAsync(p1).toBeResolved(); - await expectAsync(p2).toBePending(); - - resolve2(); - await expectAsync(p2).toBeResolved(); - }); - it('cancels the flush when aborted', async () => { let resolve, deferred = new Promise(r => (resolve = r)); let p1 = q.push(deferred);