From f79e5ecf520c630e68e6047edf460fc398ca76f4 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Mon, 11 Nov 2024 11:16:47 +0100 Subject: [PATCH] speed up partial payout integration test --- tests/integration/testmarketplace.nim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/integration/testmarketplace.nim b/tests/integration/testmarketplace.nim index 876c704b..5e068791 100644 --- a/tests/integration/testmarketplace.nim +++ b/tests/integration/testmarketplace.nim @@ -150,12 +150,11 @@ marketplacesuite "Marketplace payouts": # wait until one slot is filled check eventually(slotIdxFilled.isSome, timeout=expiry.int * 1000) + let slotId = slotId(!clientApi.requestId(id), !slotIdxFilled) # wait until sale is cancelled - without requestId =? clientApi.requestId(id): - fail() - let slotId = slotId(requestId, !slotIdxFilled) - check eventually(providerApi.saleStateIs(slotId, "SaleCancelled"), timeout=expiry.int * 1000) + await ethProvider.advanceTime(expiry.u256) + check eventually providerApi.saleStateIs(slotId, "SaleCancelled") check eventually ( let endBalanceProvider = (await token.balanceOf(provider.ethAccount));