aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/order_state_watcher_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/order_state_watcher_test.ts b/test/order_state_watcher_test.ts
index 76ecd5dd4..df007588e 100644
--- a/test/order_state_watcher_test.ts
+++ b/test/order_state_watcher_test.ts
@@ -96,7 +96,7 @@ describe('OrderStateWatcher', () => {
it('should fail when trying to subscribe twice', async () => {
await zeroEx.orderStateWatcher.subscribe(_.noop);
return expect(zeroEx.orderStateWatcher.subscribe(_.noop))
- .to.be.rejectedWith(ZeroExError.SubscriptionAlreadyPresent);
+ .to.be.eventually.rejectedWith(ZeroExError.SubscriptionAlreadyPresent);
});
});
describe('tests with cleanup', async () => {