Skip to content

Commit

Permalink
fix(ckbtc): fix system test ckbtc_minter_batching (#2604)
Browse files Browse the repository at this point in the history
Fix the broken system test.
  • Loading branch information
ninegua authored and DFINITYManu committed Nov 14, 2024
1 parent 13c0601 commit cb3cb61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions rs/tests/ckbtc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand All @@ -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",
Expand Down
3 changes: 0 additions & 3 deletions rs/tests/ckbtc/ckbtc_minter_batching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb3cb61

Please sign in to comment.