mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Increase wait time in unsubscribe_backoff test to exceed backoff duration
This commit is contained in:
@ -107,7 +107,8 @@ async def test_unsubscribe_backoff():
|
||||
)
|
||||
|
||||
# try to graft again (should succeed after backoff)
|
||||
await trio.sleep(1)
|
||||
# Wait longer than unsubscribe_back_off (4 seconds) + some buffer
|
||||
await trio.sleep(4.5)
|
||||
await gsub0.emit_graft(topic, host_1.get_id())
|
||||
await trio.sleep(1)
|
||||
assert host_0.get_id() in gsub1.mesh[topic], (
|
||||
|
||||
Reference in New Issue
Block a user