Apply PR feedback:
Check that node is in mesh peer's mesh after subscribe
This commit is contained in:
parent
042e0ac916
commit
c0a3af69e0
@ -63,8 +63,10 @@ async def test_join():
|
||||
for i in hosts_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[central_node_index].get_id()) in gossipsubs[i].mesh[topic]
|
||||
else:
|
||||
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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user