From bba21df317d0607837c1ab9855f20073aaeb8b71 Mon Sep 17 00:00:00 2001 From: cryptocode Date: Tue, 5 Jan 2021 20:50:44 +0100 Subject: [PATCH] Fix intermittent node.bootstrap_bulk_push failure (#3062) --- nano/core_test/node.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nano/core_test/node.cpp b/nano/core_test/node.cpp index 21cf1223..dd41c021 100644 --- a/nano/core_test/node.cpp +++ b/nano/core_test/node.cpp @@ -1920,7 +1920,12 @@ TEST (node, bootstrap_bulk_push) ASSERT_NO_ERROR (system1.poll ()); } // since this uses bulk_push, the new block should be republished - ASSERT_FALSE (node1->active.empty ()); + system1.deadline_set (10s); + while (node1->active.empty ()) + { + ASSERT_NO_ERROR (system0.poll ()); + ASSERT_NO_ERROR (system1.poll ()); + } } // Bootstrapping a forked open block should succeed.