mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Make the sync_cycle_from_offline_to_syncing_to_offline test non flaky (#4644)
This commit is contained in:
committed by
Arkadiy Paronyan
parent
d18fbd7940
commit
45fbf09dac
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user