summary refs log tree commit diff
path: root/tests/storage/test_background_update.py
diff options
context:
space:
mode:
authorShay <hillerys@element.io>2022-03-07 09:44:33 -0800
committerGitHub <noreply@github.com>2022-03-07 09:44:33 -0800
commit26211fec24d8d0a967de33147e148166359ec8cb (patch)
tree0524adab52f6da8693122bf3aebd6e9972fb071e /tests/storage/test_background_update.py
parentInvalidate caches when an event with a relation is redacted. (#12121) (diff)
downloadsynapse-26211fec24d8d0a967de33147e148166359ec8cb.tar.xz
Fix a bug in background updates wherein background updates are never run using the default batch size (#12157)
Diffstat (limited to 'tests/storage/test_background_update.py')
-rw-r--r--tests/storage/test_background_update.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_background_update.py b/tests/storage/test_background_update.py

index 39dcc094bd..9fdf54ea31 100644 --- a/tests/storage/test_background_update.py +++ b/tests/storage/test_background_update.py
@@ -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