diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-27 17:24:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-27 17:24:46 -0400 |
commit | e00816ad98a1165b67238f9711cb1b0e7135f25f (patch) | |
tree | 3b0135e8c57b2b9082191088237298f7b50615f7 /tests/handlers/test_typing.py | |
parent | Convert stats and related calls to async/await (#8192) (diff) | |
download | synapse-e00816ad98a1165b67238f9711cb1b0e7135f25f.tar.xz |
Do not yield on awaitables in tests. (#8193)
Diffstat (limited to 'tests/handlers/test_typing.py')
-rw-r--r-- | tests/handlers/test_typing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/handlers/test_typing.py b/tests/handlers/test_typing.py index 81c1839637..7bf15c4ba9 100644 --- a/tests/handlers/test_typing.py +++ b/tests/handlers/test_typing.py @@ -155,7 +155,9 @@ class TypingNotificationsTestCase(unittest.HomeserverTestCase): 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 + self.datastore.delete_device_msgs_for_remote = lambda *args, **kargs: make_awaitable( + None + ) self.datastore.set_received_txn_response = lambda *args, **kwargs: make_awaitable( None ) |