diff options
author | Erik Johnston <erik@matrix.org> | 2021-11-29 16:57:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 17:57:06 +0100 |
commit | d08ef6f155971717d2c6dbd78c89312afd4d84fa (patch) | |
tree | 8243c6ca2c4a99b0eeb1e6d248a8aa90b5d39901 /tests/push | |
parent | Return the stable `event` field from `/send_join` per MSC3083. (#11413) (diff) | |
download | synapse-d08ef6f155971717d2c6dbd78c89312afd4d84fa.tar.xz |
Make background updates controllable via a plugin (#11306)
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
Diffstat (limited to 'tests/push')
-rw-r--r-- | tests/push/test_email.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/push/test_email.py b/tests/push/test_email.py index 90f800e564..f8cba7b645 100644 --- a/tests/push/test_email.py +++ b/tests/push/test_email.py @@ -128,6 +128,7 @@ class EmailPusherTests(HomeserverTestCase): ) self.auth_handler = hs.get_auth_handler() + self.store = hs.get_datastore() def test_need_validated_email(self): """Test that we can only add an email pusher if the user has validated @@ -408,13 +409,7 @@ class EmailPusherTests(HomeserverTestCase): self.hs.get_datastore().db_pool.updates._all_done = False # Now let's actually drive the updates to completion - while not self.get_success( - self.hs.get_datastore().db_pool.updates.has_completed_background_updates() - ): - self.get_success( - self.hs.get_datastore().db_pool.updates.do_next_background_update(100), - by=0.1, - ) + self.wait_for_background_updates() # Check that all pushers with unlinked addresses were deleted pushers = self.get_success( |