From 9a92ec25ee8da8f3036ce9dc23b5be1fdf2c0ab3 Mon Sep 17 00:00:00 2001 From: gr0vity <gr0vity.dev@gmail.com> Date: Thu, 5 Dec 2024 14:52:00 +0100 Subject: [PATCH] Assert election exists and is the same for each iteration --- nano/core_test/active_elections.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/nano/core_test/active_elections.cpp b/nano/core_test/active_elections.cpp index 2edb0c7844..18a6d91821 100644 --- a/nano/core_test/active_elections.cpp +++ b/nano/core_test/active_elections.cpp @@ -915,11 +915,8 @@ TEST (active_elections, fork_replacement_tally) .build (); node1.process_active (fork); - // Assert election exists on first iteration - if (i == 0) - { - ASSERT_TIMELY (5s, election = node1.active.election (fork->qualified_root ())); - } + // Assert election exists and is the same for each fork + ASSERT_TIMELY (1s, election = node1.active.election (fork->qualified_root ())); } // Check overflow of blocks