mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 06:21:11 +00:00
fix race in sync tests (#2259)
This commit is contained in:
committed by
Bastian Köcher
parent
7f59cdb900
commit
5725e25448
@@ -466,6 +466,9 @@ pub enum NetworkMsg<B: BlockT + 'static> {
|
||||
Outgoing(PeerId, Message<B>),
|
||||
/// Report a peer.
|
||||
ReportPeer(PeerId, Severity),
|
||||
/// Synchronization response.
|
||||
#[cfg(any(test, feature = "test-helpers"))]
|
||||
Synchronized,
|
||||
}
|
||||
|
||||
/// Starts the background thread that handles the networking.
|
||||
@@ -548,6 +551,8 @@ fn run_thread<B: BlockT + 'static>(
|
||||
},
|
||||
}
|
||||
},
|
||||
#[cfg(any(test, feature = "test-helpers"))]
|
||||
NetworkMsg::Synchronized => (),
|
||||
}
|
||||
Ok(())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user