Apply PR feedback:

Check that node is in mesh peer's mesh after subscribe
This commit is contained in:
NIC619 2019-07-23 16:45:54 +08:00
parent 042e0ac916
commit c0a3af69e0
No known key found for this signature in database
GPG Key ID: 570C35F5C2D51B17

View File

@ -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()