Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dsarlis committed Dec 10, 2024
1 parent b323fa4 commit 2c0b539
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rs/tests/message_routing/rejoin_test_lib/rejoin_test_lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use candid::Encode;
use canister_test::{Canister, Runtime, Wasm};
use chrono::Utc;
use futures::future::join_all;
Expand Down Expand Up @@ -365,11 +364,11 @@ async fn modify_canister_heap(
continue;
}
let seed_for_canister = i + (x - 1) * num_canisters + seed;
let payload = Encode!(&(x as u32, seed_for_canister as u32)).unwrap();
let payload = (x as u32, seed_for_canister as u32);
// Each call will expand the memory by writing a chunk of 128 MiB.
// There are 8 chunks in the canister, so the memory will grow by 1 GiB after 8 calls.
let _res: Result<u8, String> = canister
.update_("expand_state", dfn_candid::candid, (payload,))
let _res: Result<u64, String> = canister
.update_("expand_state", dfn_candid::candid, payload)
.await
.unwrap_or_else(|e| {
panic!(
Expand Down

0 comments on commit 2c0b539

Please sign in to comment.