mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-02-18 01:27:15 +00:00
speed up partial payout integration test
This commit is contained in:
parent
abecadcbf7
commit
c57b4cdc02
@ -150,12 +150,11 @@ marketplacesuite "Marketplace payouts":
|
|||||||
|
|
||||||
# wait until one slot is filled
|
# wait until one slot is filled
|
||||||
check eventually(slotIdxFilled.isSome, timeout=expiry.int * 1000)
|
check eventually(slotIdxFilled.isSome, timeout=expiry.int * 1000)
|
||||||
|
let slotId = slotId(!clientApi.requestId(id), !slotIdxFilled)
|
||||||
|
|
||||||
# wait until sale is cancelled
|
# wait until sale is cancelled
|
||||||
without requestId =? clientApi.requestId(id):
|
await ethProvider.advanceTime(expiry.u256)
|
||||||
fail()
|
check eventually providerApi.saleStateIs(slotId, "SaleCancelled")
|
||||||
let slotId = slotId(requestId, !slotIdxFilled)
|
|
||||||
check eventually(providerApi.saleStateIs(slotId, "SaleCancelled"), timeout=expiry.int * 1000)
|
|
||||||
|
|
||||||
check eventually (
|
check eventually (
|
||||||
let endBalanceProvider = (await token.balanceOf(provider.ethAccount));
|
let endBalanceProvider = (await token.balanceOf(provider.ethAccount));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user