update market test
This commit is contained in:
parent
38643c9709
commit
a7277e90fb
|
@ -1,4 +1,5 @@
|
||||||
import pkg/chronos
|
import pkg/chronos
|
||||||
|
import pkg/ethers/testing
|
||||||
import codex/contracts
|
import codex/contracts
|
||||||
import codex/contracts/testtoken
|
import codex/contracts/testtoken
|
||||||
import stew/byteutils # delete me
|
import stew/byteutils # delete me
|
||||||
|
@ -180,7 +181,8 @@ ethersuite "On-Chain Market":
|
||||||
|
|
||||||
let subscription = await market.subscribeRequestCancelled(request.id, onRequestCancelled)
|
let subscription = await market.subscribeRequestCancelled(request.id, onRequestCancelled)
|
||||||
await provider.advanceTimeTo(request.expiry) # shares expiry with otherRequest
|
await provider.advanceTimeTo(request.expiry) # shares expiry with otherRequest
|
||||||
expect ValueError:
|
check:
|
||||||
|
revertsWith "Invalid client address":
|
||||||
await market.withdrawFunds(otherRequest.id)
|
await market.withdrawFunds(otherRequest.id)
|
||||||
check receivedIds.len == 0
|
check receivedIds.len == 0
|
||||||
await market.withdrawFunds(request.id)
|
await market.withdrawFunds(request.id)
|
||||||
|
|
Loading…
Reference in New Issue