speed up partial payout integration test

This commit is contained in:
Mark Spanbroek 2024-11-11 11:16:47 +01:00
parent abecadcbf7
commit c57b4cdc02
No known key found for this signature in database
GPG Key ID: FBE3E9548D427C00
1 changed files with 3 additions and 4 deletions

View File

@ -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));