fix race in sync tests (#2259)

This commit is contained in:
Svyatoslav Nikolsky authored and Bastian Köcher committed 2019-04-12 09:32:00 +02:00
1 parent 7f59cdb900
commit 5725e25448
10 files changed
+316 -241

No files matched your search

+1 -1
View File
@@ -950,7 +950,7 @@ mod tests {
let drive_to_completion = ::tokio::timer::Interval::new_interval(TEST_ROUTING_INTERVAL)
.for_each(move |_| {
net.lock().send_import_notifications();
net.lock().route_fast();
net.lock().sync_without_disconnects();
Ok(())
})
.map(|_| ())