limit batch size on announcer test so it covers batching logic
This commit is contained in:
parent
c6a3c05a0c
commit
84b471d486
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class TestBlobAnnouncer(AsyncioTestCase):
|
||||||
)
|
)
|
||||||
to_announce = await self.storage.get_blobs_to_announce()
|
to_announce = await self.storage.get_blobs_to_announce()
|
||||||
self.assertEqual(2, len(to_announce))
|
self.assertEqual(2, len(to_announce))
|
||||||
self.blob_announcer.start()
|
self.blob_announcer.start(batch_size=1) # so it covers batching logic
|
||||||
await self.advance(61.0)
|
await self.advance(61.0)
|
||||||
to_announce = await self.storage.get_blobs_to_announce()
|
to_announce = await self.storage.get_blobs_to_announce()
|
||||||
self.assertEqual(0, len(to_announce))
|
self.assertEqual(0, len(to_announce))
|
||||||
|
|
Loading…
Reference in a new issue