mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-05 11:24:15 -04:00
Fix a bug in background updates wherein background updates are never run using the default batch size (#12157)
This commit is contained in:
parent
f63bedef07
commit
26211fec24
4 changed files with 16 additions and 15 deletions
|
@ -66,13 +66,13 @@ class BackgroundUpdateTestCase(unittest.HomeserverTestCase):
|
|||
self.update_handler.reset_mock()
|
||||
res = self.get_success(
|
||||
self.updates.do_next_background_update(False),
|
||||
by=0.01,
|
||||
by=0.02,
|
||||
)
|
||||
self.assertFalse(res)
|
||||
|
||||
# on the first call, we should get run with the default background update size
|
||||
self.update_handler.assert_called_once_with(
|
||||
{"my_key": 1}, self.updates.MINIMUM_BACKGROUND_BATCH_SIZE
|
||||
{"my_key": 1}, self.updates.DEFAULT_BACKGROUND_BATCH_SIZE
|
||||
)
|
||||
|
||||
# second step: complete the update
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue