summary refs log tree commit diff
path: root/tests/storage/test_state.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/storage/test_state.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 'tests/storage/test_state.py')
-rw-r--r--tests/storage/test_state.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_state.py b/tests/storage/test_state.py
index 0b88308ff4..a0e133cd4a 100644
--- a/tests/storage/test_state.py
+++ b/tests/storage/test_state.py
@@ -64,8 +64,8 @@ class StateStoreTestCase(tests.unittest.TestCase):
             },
         )
 
-        event, context = yield self.event_creation_handler.create_new_client_event(
-            builder
+        event, context = yield defer.ensureDeferred(
+            self.event_creation_handler.create_new_client_event(builder)
         )
 
         yield self.storage.persistence.persist_event(event, context)