We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f641870 commit 64cd225Copy full SHA for 64cd225
protocols/gossipsub/src/behaviour/tests.rs
@@ -580,7 +580,7 @@ fn test_join() {
580
// add 3 random peers to the fanout[topic1]
581
gs.fanout
582
.insert(topic_hashes[1].clone(), Default::default());
583
- let new_peers: Vec<PeerId> = vec![];
+ let mut new_peers: Vec<PeerId> = vec![];
584
for _ in 0..3 {
585
let random_peer = PeerId::random();
586
// inform the behaviour of a new peer
@@ -598,6 +598,7 @@ fn test_join() {
598
// add the new peer to the fanout
599
let fanout_peers = gs.fanout.get_mut(&topic_hashes[1]).unwrap();
600
fanout_peers.insert(random_peer);
601
+ new_peers.push(random_peer);
602
}
603
604
// subscribe to topic1
0 commit comments