From a7277e90fbb9281786935fc09846eae67b005ce4 Mon Sep 17 00:00:00 2001 From: Eric Mastro Date: Tue, 20 Sep 2022 17:17:40 +1000 Subject: [PATCH] update market test --- tests/contracts/testMarket.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/contracts/testMarket.nim b/tests/contracts/testMarket.nim index b98e10d4..85286dad 100644 --- a/tests/contracts/testMarket.nim +++ b/tests/contracts/testMarket.nim @@ -1,4 +1,5 @@ import pkg/chronos +import pkg/ethers/testing import codex/contracts import codex/contracts/testtoken import stew/byteutils # delete me @@ -180,8 +181,9 @@ ethersuite "On-Chain Market": let subscription = await market.subscribeRequestCancelled(request.id, onRequestCancelled) await provider.advanceTimeTo(request.expiry) # shares expiry with otherRequest - expect ValueError: - await market.withdrawFunds(otherRequest.id) + check: + revertsWith "Invalid client address": + await market.withdrawFunds(otherRequest.id) check receivedIds.len == 0 await market.withdrawFunds(request.id) check receivedIds == @[request.id]