From ec24a1ada4a45a44610d76047f1f47ee5862952e Mon Sep 17 00:00:00 2001 From: gc <30398469+gc@users.noreply.github.com> Date: Mon, 26 Feb 2024 00:54:26 +1100 Subject: [PATCH] Wait for g.e queue to be empty after every tick --- tests/integration/grandExchange.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/grandExchange.test.ts b/tests/integration/grandExchange.test.ts index 84db2c9796..8a839d922a 100644 --- a/tests/integration/grandExchange.test.ts +++ b/tests/integration/grandExchange.test.ts @@ -64,7 +64,6 @@ describe('Grand Exchange', async () => { async function waitForGEToBeEmpty() { await GrandExchange.queue.onEmpty(); - assert(GrandExchange.queue.size === 0, 'G.E Queue should be empty'); assert(!GrandExchange.locked, 'G.E should not be locked'); } @@ -116,6 +115,7 @@ describe('Grand Exchange', async () => { // Tick the g.e to make some transactions for (let i = 0; i < 100; i++) { await GrandExchange.tick(); + await waitForGEToBeEmpty(); await Promise.all([ GrandExchange.checkGECanFullFilAllListings(), GrandExchange.extensiveVerification()