From c0a3af69e0d3a868f5d40e653400bf6d7a016d38 Mon Sep 17 00:00:00 2001 From: NIC619 Date: Tue, 23 Jul 2019 16:45:54 +0800 Subject: [PATCH] Apply PR feedback: Check that node is in mesh peer's mesh after subscribe --- tests/pubsub/test_gossipsub.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/pubsub/test_gossipsub.py b/tests/pubsub/test_gossipsub.py index 2b81eb3..ab76e26 100644 --- a/tests/pubsub/test_gossipsub.py +++ b/tests/pubsub/test_gossipsub.py @@ -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()