mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Apply PR feedback: correct the comment in test
This commit is contained in:
@ -161,9 +161,8 @@ async def test_handle_prune(pubsubs_gsub, hosts):
|
|||||||
# `emit_prune` does not remove bob from alice's mesh peers
|
# `emit_prune` does not remove bob from alice's mesh peers
|
||||||
assert id_bob in gossipsubs[index_alice].mesh[topic]
|
assert id_bob in gossipsubs[index_alice].mesh[topic]
|
||||||
|
|
||||||
# FIXME: This test currently works because the heartbeat interval
|
# NOTE: We increase `heartbeat_interval` to 3 seconds so that bob will not
|
||||||
# is increased to 3 seconds, so alice won't get add back into
|
# add alice back to his mesh after heartbeat.
|
||||||
# bob's mesh peer during heartbeat.
|
|
||||||
# Wait for bob to `handle_prune`
|
# Wait for bob to `handle_prune`
|
||||||
await asyncio.sleep(0.1)
|
await asyncio.sleep(0.1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user