Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions rs/execution_environment/tests/dts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,7 @@ fn dts_aborted_execution_does_not_block_subnet_messages() {
.unwrap();

env.set_checkpoints_enabled(true);
// With checkpoints enabled, the update call will be aborted.
let long_execution_id = env.send_ingress(
user_id,
aborted_canister_id,
Expand All @@ -1021,12 +1022,6 @@ fn dts_aborted_execution_does_not_block_subnet_messages() {
.build(),
);

for _ in 0..5 {
// With checkpoints enabled, the update message will be repeatedly
// aborted, so there will be no progress.
env.tick();
}

let (method, args) = f(aborted_canister_id);
if method == Method::DeleteCanisterSnapshot
|| method == Method::ReadCanisterSnapshotMetadata
Expand Down Expand Up @@ -1067,7 +1062,8 @@ fn dts_aborted_execution_does_not_block_subnet_messages() {
let subnet_message_id =
env.send_ingress(user_id, other_canister_id, "update", subnet_message);

for _ in 0..5 {
// Need 2 rounds for the response to the subnet message to be inducted.
for _ in 0..2 {
env.tick();
}

Expand Down
Loading