Apply PR feedback: correct the comment in test

This commit is contained in:
NIC619 2019-12-05 14:40:49 +08:00
parent e6813da5f5
commit fae3798ca9
No known key found for this signature in database
GPG Key ID: 570C35F5C2D51B17

View File

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