diff --git a/ref-tests/tests/integration.rs b/ref-tests/tests/integration.rs index d058aea6..eb825755 100644 --- a/ref-tests/tests/integration.rs +++ b/ref-tests/tests/integration.rs @@ -193,10 +193,10 @@ fn canister_reject_call() { reject_message, error_code: None, .. - })) if *reject_message == format!( - "Canister {} has no update method 'wallet_send'", + })) if reject_message.contains(&format!( + "Canister {}: Canister has no update method 'wallet_send'", alice.canister_id() - ) + )) ), "wrong error: {result:?}" );