Skip to content
Snippets Groups Projects
Commit 45fbf09d authored by Pierre Krieger's avatar Pierre Krieger Committed by Arkadiy Paronyan
Browse files

Make the sync_cycle_from_offline_to_syncing_to_offline test non flaky (#4644)

parent d18fbd79
No related merge requests found
......@@ -80,7 +80,7 @@ fn sync_cycle_from_offline_to_syncing_to_offline() {
}
if peer < 2 {
// Major syncing.
if !net.peer(peer).is_major_syncing() {
if net.peer(peer).blocks_count() < 100 && !net.peer(peer).is_major_syncing() {
return Ok(Async::NotReady)
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment