mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-18 10:09:14 -04:00
Make has_completed_background_updates
async
(Almost) everywhere that uses it is happy with an awaitable.
This commit is contained in:
parent
cfe8c8ab8e
commit
26d17b9bdc
2 changed files with 6 additions and 5 deletions
|
@ -11,7 +11,9 @@ class BackgroundUpdateTestCase(unittest.HomeserverTestCase):
|
|||
def prepare(self, reactor, clock, homeserver):
|
||||
self.updates = self.hs.get_datastore().db.updates # type: BackgroundUpdater
|
||||
# the base test class should have run the real bg updates for us
|
||||
self.assertTrue(self.updates.has_completed_background_updates())
|
||||
self.assertTrue(
|
||||
self.get_success(self.updates.has_completed_background_updates())
|
||||
)
|
||||
|
||||
self.update_handler = Mock()
|
||||
self.updates.register_background_update_handler(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue