test px and backoff

This commit is contained in:
Khwahish29
2025-06-23 00:41:13 +05:30
parent 24e73207d2
commit ea6eef6ed5
3 changed files with 119 additions and 2 deletions

View File

@ -292,7 +292,9 @@ async def test_fanout():
@pytest.mark.trio
@pytest.mark.slow
async def test_fanout_maintenance():
async with PubsubFactory.create_batch_with_gossipsub(10) as pubsubs_gsub:
async with PubsubFactory.create_batch_with_gossipsub(
10, unsubscribe_back_off=1
) as pubsubs_gsub:
hosts = [pubsub.host for pubsub in pubsubs_gsub]
num_msgs = 5