From ba991bcb21b3509df9bbc77d63324b38a44ad832 Mon Sep 17 00:00:00 2001 From: Adam Spofford Date: Fri, 20 Dec 2024 12:57:36 -0800 Subject: [PATCH] another --- ref-tests/tests/ic-ref.rs | 5 +++-- ref-tests/tests/integration.rs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ref-tests/tests/ic-ref.rs b/ref-tests/tests/ic-ref.rs index f63d6e9a..445f0a41 100644 --- a/ref-tests/tests/ic-ref.rs +++ b/ref-tests/tests/ic-ref.rs @@ -514,8 +514,9 @@ mod management_canister { Err(AgentError::CertifiedReject(RejectResponse { reject_code: RejectCode::CanisterError, reject_message, - error_code: None, + error_code: Some(error_code), })) if reject_message.contains(&format!("Canister {canister_id}: Canister has no update method 'update'")) + && error_code == "IC0536" ), "wrong error: {result:?}" ); @@ -738,7 +739,7 @@ mod management_canister { let args = Argument::from_candid((create_args,)); - let creation_fee = 100_000_000_000; + let creation_fee = 500_000_000_000; let canister_initial_balance = 4_000_000_000; let (create_result,): (CreateResult,) = wallet .call( diff --git a/ref-tests/tests/integration.rs b/ref-tests/tests/integration.rs index b026c206..17127112 100644 --- a/ref-tests/tests/integration.rs +++ b/ref-tests/tests/integration.rs @@ -191,12 +191,12 @@ fn canister_reject_call() { Err(AgentError::CertifiedReject(RejectResponse { reject_code: RejectCode::CanisterError, reject_message, - error_code: None, + error_code: Some(error_code), .. })) if reject_message.contains(&format!( "Canister {}: Canister has no update method 'wallet_send'", alice.canister_id() - )) + )) && error_code == "IC0536" ), "wrong error: {result:?}" );