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

Fix flaky test (#3569)

Fixes #3557
parent d2468319
Pipeline #151096 passed with stages
in 41 minutes and 3 seconds
...@@ -770,13 +770,6 @@ fn peer_disconnect_from_just_one_peerset() { ...@@ -770,13 +770,6 @@ fn peer_disconnect_from_just_one_peerset() {
let peer = PeerId::random(); let peer = PeerId::random();
network_handle
.connect_peer(peer.clone(), PeerSet::Validation, ObservedRole::Full)
.await;
network_handle
.connect_peer(peer.clone(), PeerSet::Collation, ObservedRole::Full)
.await;
assert_matches!( assert_matches!(
virtual_overseer.recv().await, virtual_overseer.recv().await,
AllMessages::DisputeDistribution(DisputeDistributionMessage::DisputeSendingReceiver(_)) AllMessages::DisputeDistribution(DisputeDistributionMessage::DisputeSendingReceiver(_))
...@@ -788,6 +781,13 @@ fn peer_disconnect_from_just_one_peerset() { ...@@ -788,6 +781,13 @@ fn peer_disconnect_from_just_one_peerset() {
) )
); );
network_handle
.connect_peer(peer.clone(), PeerSet::Validation, ObservedRole::Full)
.await;
network_handle
.connect_peer(peer.clone(), PeerSet::Collation, ObservedRole::Full)
.await;
// bridge will inform about all connected peers. // bridge will inform about all connected peers.
{ {
assert_sends_validation_event_to_all( 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