Skip to content

Commit

Permalink
Fix intermittent node.bootstrap_bulk_push failure (nanocurrency#3062)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptocode authored Jan 5, 2021
1 parent 1c5b940 commit bba21df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nano/core_test/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bba21df

Please sign in to comment.