From ab7718935025d4050d2937a308000161102c253a Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Thu, 24 Mar 2022 10:59:42 +0100 Subject: [PATCH] add custom error check --- test/crosschain/CrossChainEnabled.test.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/crosschain/CrossChainEnabled.test.js b/test/crosschain/CrossChainEnabled.test.js index b5e522944b4..ff2de218790 100644 --- a/test/crosschain/CrossChainEnabled.test.js +++ b/test/crosschain/CrossChainEnabled.test.js @@ -32,11 +32,10 @@ function shouldBehaveLikeReceiver (sender = randomAddress()) { }); it('should restrict to cross-chain call from a invalid sender', async function () { - await expectRevert(CrossChainHelper.call( - sender, - this.receiver, - 'crossChainOwnerRestricted()', - )); + await expectRevert( + CrossChainHelper.call(sender, this.receiver, 'crossChainOwnerRestricted()'), + `InvalidCrossChainSender("${sender}", "${await this.receiver.owner()}")`, + ); }); it('should grant access to cross-chain call from the owner', async function () {