diff --git a/nano/core_test/ledger.cpp b/nano/core_test/ledger.cpp index e57aa97a7..4d82ae7e4 100644 --- a/nano/core_test/ledger.cpp +++ b/nano/core_test/ledger.cpp @@ -597,6 +597,8 @@ TEST (system, generate_send_new) ASSERT_GT (node1.balance (stake_preserver.pub), node1.balance (nano::genesis_account)); std::vector accounts; accounts.push_back (nano::test_genesis_key.pub); + // This indirectly waits for online weight to stabilize, required to prevent intermittent failures + ASSERT_TIMELY (5s, node1.wallets.rep_counts ().voting > 0); system.generate_send_new (node1, accounts); nano::account new_account (0); {