Skip to content

Commit

Permalink
test: add check for head
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Aug 7, 2024
1 parent f33f16a commit 2b4046d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/engine/tree/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2838,5 +2838,8 @@ mod tests {
}
_ => panic!("Unexpected event: {:#?}", event),
}

// new head is the tip of the main chain
assert_eq!(test_harness.tree.state.tree_state.canonical_head().hash, main_chain_last_hash);
}
}

0 comments on commit 2b4046d

Please sign in to comment.