Unverified Commit 626e118f authored by Robert Klotzner's avatar Robert Klotzner Committed by GitHub
Browse files

Do peer connect later (as it happens in reality). (#2971)

Otherwise peer connect events occassionally happen before
`StatementFetchingReceiver` message.
parent e9a29ecc
Pipeline #136703 passed with stages
in 44 minutes and 4 seconds
......@@ -1998,9 +1998,6 @@ mod tests {
let peer_a = PeerId::random();
let peer_b = PeerId::random();
network_handle.connect_peer(peer_a.clone(), PeerSet::Validation, ObservedRole::Full).await;
network_handle.connect_peer(peer_b.clone(), PeerSet::Collation, ObservedRole::Full).await;
assert_matches!(
virtual_overseer.recv().await,
AllMessages::StatementDistribution(
......@@ -2008,6 +2005,9 @@ mod tests {
)
);
network_handle.connect_peer(peer_a.clone(), PeerSet::Validation, ObservedRole::Full).await;
network_handle.connect_peer(peer_b.clone(), PeerSet::Collation, ObservedRole::Full).await;
// bridge will inform about all connected peers.
{
assert_sends_validation_event_to_all(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment