Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix case in wait_for_background_updates where self.store does not exist #11331

Merged
merged 4 commits into from
Dec 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def wait_on_thread(self, deferred, timeout=10):
def wait_for_background_updates(self) -> None:
"""Block until all background database updates have completed."""
while not self.get_success(
self.store.db_pool.updates.has_completed_background_updates()
self.hs.get_datastore().db_pool.updates.has_completed_background_updates()
):
self.get_success(
self.store.db_pool.updates.do_next_background_update(100), by=0.1
clokep marked this conversation as resolved.
Show resolved Hide resolved
Expand Down