mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-31 07:07:30 +00:00
removed PubSub in sunscribe
This commit is contained in:
parent
567a456200
commit
cc8e97636f
@ -237,7 +237,7 @@ suite "GossipSub Topic Membership Tests":
|
|||||||
var peersToUnsubscribe = gossipSub.mesh[topic].toSeq()[0 .. 2]
|
var peersToUnsubscribe = gossipSub.mesh[topic].toSeq()[0 .. 2]
|
||||||
for peer in peersToUnsubscribe:
|
for peer in peersToUnsubscribe:
|
||||||
echo "Unsubscribing peer: ", peer.peerId
|
echo "Unsubscribing peer: ", peer.peerId
|
||||||
gossipSub.PubSub.unsubscribe(topic, dummyHandler)
|
gossipSub.unsubscribe(topic, dummyHandler)
|
||||||
|
|
||||||
# Now assert that 6 peers still remain in the mesh because the mesh retains peers
|
# Now assert that 6 peers still remain in the mesh because the mesh retains peers
|
||||||
doAssert gossipSub.mesh[topic].len == 6,
|
doAssert gossipSub.mesh[topic].len == 6,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user