diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-07-22 12:29:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 12:29:15 -0400 |
commit | cc9bb3dc3f299d451ab523dea192e48c32e87c68 (patch) | |
tree | b15225888161dd8c50f77249377fb0e58dc8cfb7 /tests/utils.py | |
parent | Merge pull request #7934 from matrix-org/babolivier/acme_eol (diff) | |
download | synapse-cc9bb3dc3f299d451ab523dea192e48c32e87c68.tar.xz |
Convert the message handler to async/await. (#7884)
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 4 |
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) |