Skip to content

Commit 6094e23

Browse files
committed
Clean up test assert
1 parent 06c2632 commit 6094e23

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

beacon_node/beacon_chain/tests/store_tests.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3647,18 +3647,18 @@ async fn ancestor_state_root_prior_to_split() {
36473647
if ancestor_slot == state_slot {
36483648
continue;
36493649
}
3650-
tracing::debug!(
3651-
%state_slot,
3652-
%ancestor_slot,
3653-
head_slot = %head_state.slot(),
3654-
"Fetching ancestor state root"
3655-
);
36563650
let ancestor_state_root = store::hot_cold_store::get_ancestor_state_root(
36573651
&store,
36583652
&head_state,
36593653
ancestor_slot,
36603654
)
3661-
.unwrap();
3655+
.unwrap_or_else(|e| {
3656+
panic!(
3657+
"get_ancestor_state_root failed for state_slot={state_slot}, \
3658+
ancestor_slot={ancestor_slot}, head_slot={}. error: {e:?}",
3659+
head_state.slot()
3660+
)
3661+
});
36623662

36633663
// Check state root correctness.
36643664
assert_eq!(

0 commit comments

Comments
 (0)