diff options
author | David Robertson <davidr@element.io> | 2021-10-06 13:56:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 12:56:45 +0000 |
commit | 370bca32e60a854ab063f1abedb087dacae37e5a (patch) | |
tree | fc1f91ec6da55e34ac6c223b308881e719eee6b2 /tests/storage/test_user_directory.py | |
parent | Updated development doc on samling environment for testing. (#10973) (diff) | |
download | synapse-370bca32e60a854ab063f1abedb087dacae37e5a.tar.xz |
Don't drop user dir deltas when server leaves room (#10982)
Fix a long-standing bug where a batch of user directory changes would be silently dropped if the server left a room early in the batch. * Pull out `wait_for_background_update` in tests Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Diffstat (limited to 'tests/storage/test_user_directory.py')
-rw-r--r-- | tests/storage/test_user_directory.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/storage/test_user_directory.py b/tests/storage/test_user_directory.py index fddfb8db28..9f483ad681 100644 --- a/tests/storage/test_user_directory.py +++ b/tests/storage/test_user_directory.py @@ -212,12 +212,7 @@ class UserDirectoryInitialPopulationTestcase(HomeserverTestCase): ) ) - while not self.get_success( - self.store.db_pool.updates.has_completed_background_updates() - ): - self.get_success( - self.store.db_pool.updates.do_next_background_update(100), by=0.1 - ) + self.wait_for_background_updates() def test_initial(self) -> None: """ |