fix timing of marketplace tests
allow for a bit more time to withdraw funds
This commit is contained in:
parent
86264f3ff0
commit
5d3756a735
|
@ -85,7 +85,10 @@ twonodessuite "Marketplace", debug1 = false, debug2 = false:
|
|||
check eventually (await token.balanceOf(account2)) - startBalanceHost >= (duration-5*60)*reward*nodes.u256
|
||||
|
||||
# Checking that client node receives some funds back that were not used for the host nodes
|
||||
check eventually (await token.balanceOf(account1)) - clientBalanceBeforeFinished > 0
|
||||
check eventually(
|
||||
(await token.balanceOf(account1)) - clientBalanceBeforeFinished > 0,
|
||||
timeout = 10*1000 # give client a bit of time to withdraw its funds
|
||||
)
|
||||
|
||||
marketplacesuite "Marketplace payouts":
|
||||
|
||||
|
@ -162,9 +165,12 @@ marketplacesuite "Marketplace payouts":
|
|||
endBalanceProvider < startBalanceProvider + expiry.u256*reward
|
||||
)
|
||||
check eventually(
|
||||
(
|
||||
let endBalanceClient = (await token.balanceOf(client.ethAccount));
|
||||
let endBalanceProvider = (await token.balanceOf(provider.ethAccount));
|
||||
(startBalanceClient - endBalanceClient) == (endBalanceProvider - startBalanceProvider)
|
||||
),
|
||||
timeout = 10*1000 # give client a bit of time to withdraw its funds
|
||||
)
|
||||
|
||||
await subscription.unsubscribe()
|
||||
|
|
Loading…
Reference in New Issue