mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 18:51:12 +00:00
Do peer connect later (as it happens in reality). (#2971)
Otherwise peer connect events occassionally happen before `StatementFetchingReceiver` message.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user