summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-08-12 09:29:06 -0400
committerGitHub <noreply@github.com>2020-08-12 09:29:06 -0400
commitd68e10f308f89810e8d9ff94219cc68ca83f636d (patch)
tree6364d2a49d9f604c25142729514e95148ff9be90 /tests
parentConvert appservice, group server, profile and more databases to async (#8066) (diff)
downloadsynapse-d68e10f308f89810e8d9ff94219cc68ca83f636d.tar.xz
Convert account data, device inbox, and censor events databases to async/await (#8063)
Diffstat (limited to 'tests')
-rw-r--r--tests/handlers/test_typing.py3
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