Skip to content

Commit

Permalink
Fix race condition in bulk.genesis_pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
dsiganos committed Jan 25, 2024
1 parent 3596dfc commit a2bc018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/core_test/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@ TEST (bulk, genesis_pruning)
ASSERT_EQ (0, node1->ledger.cache.pruned_count);

ASSERT_TRUE (nano::test::start_elections (system, *node1, { send3 }, true));
ASSERT_TIMELY (5s, node1->active.empty ());
ASSERT_TIMELY (5s, nano::test::confirmed (*node1, { send3 }));

node1->ledger_pruning (2, false);
ASSERT_EQ (2, node1->ledger.cache.pruned_count);
Expand Down

0 comments on commit a2bc018

Please sign in to comment.