mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Apply PR feedback:
Check that node is in mesh peer's mesh after subscribe
This commit is contained in:
@ -63,8 +63,10 @@ async def test_join():
|
|||||||
for i in hosts_indices:
|
for i in hosts_indices:
|
||||||
if i in subscribed_peer_indices:
|
if i in subscribed_peer_indices:
|
||||||
assert str(libp2p_hosts[i].get_id()) in gossipsubs[central_node_index].mesh[topic]
|
assert str(libp2p_hosts[i].get_id()) in gossipsubs[central_node_index].mesh[topic]
|
||||||
|
assert str(libp2p_hosts[central_node_index].get_id()) in gossipsubs[i].mesh[topic]
|
||||||
else:
|
else:
|
||||||
assert str(libp2p_hosts[i].get_id()) not in gossipsubs[central_node_index].mesh[topic]
|
assert str(libp2p_hosts[i].get_id()) not in gossipsubs[central_node_index].mesh[topic]
|
||||||
|
assert str(libp2p_hosts[central_node_index].get_id()) not in gossipsubs[i].mesh[topic]
|
||||||
|
|
||||||
await cleanup()
|
await cleanup()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user