From cb3cb61009d904bcb726781ad379de10e1b745ff Mon Sep 17 00:00:00 2001 From: Paul Liu Date: Thu, 14 Nov 2024 14:22:39 +0800 Subject: [PATCH] fix(ckbtc): fix system test ckbtc_minter_batching (#2604) Fix the broken system test. --- rs/tests/ckbtc/BUILD.bazel | 2 ++ rs/tests/ckbtc/ckbtc_minter_batching.rs | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/rs/tests/ckbtc/BUILD.bazel b/rs/tests/ckbtc/BUILD.bazel index ce8e2b08eb3..52771b8d110 100644 --- a/rs/tests/ckbtc/BUILD.bazel +++ b/rs/tests/ckbtc/BUILD.bazel @@ -214,6 +214,7 @@ system_test_nns( name = "ckbtc_minter_batching", env = { "BTC_WASM_PATH": "$(rootpath @btc_canister//file)", + "IC_BTC_KYT_WASM_PATH": "$(rootpath //rs/bitcoin/kyt:btc_kyt_canister)", "IC_CKBTC_KYT_WASM_PATH": "$(rootpath //rs/bitcoin/ckbtc/kyt:kyt_canister)", "IC_CKBTC_MINTER_WASM_PATH": "$(rootpath //rs/bitcoin/ckbtc/minter:ckbtc_minter_debug)", "LEDGER_WASM_PATH": "$(rootpath //rs/ledger_suite/icrc1/ledger:ledger_canister)", @@ -232,6 +233,7 @@ system_test_nns( # Keep sorted. "//rs/bitcoin/ckbtc/kyt:kyt_canister", "//rs/bitcoin/ckbtc/minter:ckbtc_minter_debug", + "//rs/bitcoin/kyt:btc_kyt_canister", "//rs/ledger_suite/icrc1/ledger:ledger_canister", "//rs/universal_canister/impl:universal_canister.wasm.gz", "@btc_canister//file", diff --git a/rs/tests/ckbtc/ckbtc_minter_batching.rs b/rs/tests/ckbtc/ckbtc_minter_batching.rs index e5de903124b..624d5260480 100644 --- a/rs/tests/ckbtc/ckbtc_minter_batching.rs +++ b/rs/tests/ckbtc/ckbtc_minter_batching.rs @@ -316,15 +316,12 @@ pub fn test_batching(env: TestEnv) { * (RETRIEVE_REQUESTS_COUNT_TO_BATCH as u64 + 1) + ic_ckbtc_minter::MINTER_FEE_CONSTANT; - let kyts_fee = RETRIEVE_REQUESTS_COUNT_TO_BATCH as u64 * KYT_FEE; - // We can check that the destination address has received all the bitcoin assert_eq!( destination_balance, (RETRIEVE_REQUESTS_COUNT_TO_BATCH as u64) * retrieve_amount - EXPECTED_FEE - minters_fee - - kyts_fee ); // We also check that the destination address have received 20 utxos