summary refs log tree commit diff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-07-22 12:29:15 -0400
committerGitHub <noreply@github.com>2020-07-22 12:29:15 -0400
commitcc9bb3dc3f299d451ab523dea192e48c32e87c68 (patch)
treeb15225888161dd8c50f77249377fb0e58dc8cfb7 /tests/utils.py
parentMerge pull request #7934 from matrix-org/babolivier/acme_eol (diff)
downloadsynapse-cc9bb3dc3f299d451ab523dea192e48c32e87c68.tar.xz
Convert the message handler to async/await. (#7884)
Diffstat (limited to '')
-rw-r--r--tests/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 4d17355a5c..ac643679aa 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -671,6 +671,8 @@ def create_room(hs, room_id, creator_id):
         },
     )
 
-    event, context = yield event_creation_handler.create_new_client_event(builder)
+    event, context = yield defer.ensureDeferred(
+        event_creation_handler.create_new_client_event(builder)
+    )
 
     yield persistence_store.persist_event(event, context)