diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-12 09:29:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 09:29:06 -0400 |
commit | d68e10f308f89810e8d9ff94219cc68ca83f636d (patch) | |
tree | 6364d2a49d9f604c25142729514e95148ff9be90 /tests/handlers/test_typing.py | |
parent | Convert appservice, group server, profile and more databases to async (#8066) (diff) | |
download | synapse-d68e10f308f89810e8d9ff94219cc68ca83f636d.tar.xz |
Convert account data, device inbox, and censor events databases to async/await (#8063)
Diffstat (limited to 'tests/handlers/test_typing.py')
-rw-r--r-- | tests/handlers/test_typing.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/handlers/test_typing.py b/tests/handlers/test_typing.py index b7d0adb10e..64ddd8243d 100644 --- a/tests/handlers/test_typing.py +++ b/tests/handlers/test_typing.py @@ -24,6 +24,7 @@ from synapse.api.errors import AuthError from synapse.types import UserID from tests import unittest +from tests.test_utils import make_awaitable from tests.unittest import override_config from tests.utils import register_federation_servlets @@ -151,7 +152,7 @@ class TypingNotificationsTestCase(unittest.HomeserverTestCase): self.datastore.get_current_state_deltas.return_value = (0, None) self.datastore.get_to_device_stream_token = lambda: 0 - self.datastore.get_new_device_msgs_for_remote = lambda *args, **kargs: defer.succeed( + self.datastore.get_new_device_msgs_for_remote = lambda *args, **kargs: make_awaitable( ([], 0) ) self.datastore.delete_device_msgs_for_remote = lambda *args, **kargs: None |