Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Make the sync_cycle_from_offline_to_syncing_to_offline test non flaky (
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka authored and arkpar committed Jan 16, 2020
1 parent 99430a5 commit 1e0c679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/network/test/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 1e0c679

Please sign in to comment.