Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Jan 24, 2025
1 parent 1278ed0 commit 6c6717a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ lint-fix:

# Also run the lints on the optimized-only tests
lint-full:
RUSTFLAGS="-C debug-assertions=no $(RUSTFLAGS)" $(MAKE) lint
TEST_FEATURES="beacon-node-leveldb,beacon-node-redb,${TEST_FEATURES}" RUSTFLAGS="-C debug-assertions=no $(RUSTFLAGS)" $(MAKE) lint

# Runs the makefile in the `ef_tests` repo.
#
Expand Down
8 changes: 4 additions & 4 deletions beacon_node/beacon_chain/tests/store_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@ async fn garbage_collect_temp_states_from_failed_block_on_startup() {
.unwrap_err();

assert_eq!(
store.iter_temporary_state_roots().count(),
store.iter_temporary_state_roots().unwrap().count(),
block_slot.as_usize() - 1
);
store
Expand All @@ -2174,7 +2174,7 @@ async fn garbage_collect_temp_states_from_failed_block_on_startup() {

// On startup, the store should garbage collect all the temporary states.
let store = get_store(&db_path);
assert_eq!(store.iter_temporary_state_roots().count(), 0);
assert_eq!(store.iter_temporary_state_roots().unwrap().count(), 0);
}

#[tokio::test]
Expand Down Expand Up @@ -2210,7 +2210,7 @@ async fn garbage_collect_temp_states_from_failed_block_on_finalization() {
.unwrap_err();

assert_eq!(
store.iter_temporary_state_roots().count(),
store.iter_temporary_state_roots().unwrap().count(),
block_slot.as_usize() - 1
);

Expand All @@ -2229,7 +2229,7 @@ async fn garbage_collect_temp_states_from_failed_block_on_finalization() {
assert_ne!(store.get_split_slot(), 0);

// Check that temporary states have been pruned.
assert_eq!(store.iter_temporary_state_roots().count(), 0);
assert_eq!(store.iter_temporary_state_roots().unwrap().count(), 0);
}

#[tokio::test]
Expand Down

0 comments on commit 6c6717a

Please sign in to comment.