Make the sync_cycle_from_offline_to_syncing_to_offline test non flaky (#4644)

This commit is contained in:
Pierre Krieger
2020-01-16 15:41:26 +01:00
committed by Arkadiy Paronyan
parent d18fbd7940
commit 45fbf09dac
+1 -1
View File
@@ -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)
}
}