Fix intermittent node.bootstrap_bulk_push failure (#3062)

This commit is contained in:
cryptocode 2021-01-05 20:50:44 +01:00 committed by GitHub
commit bba21df317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.