summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-07-27 12:21:34 -0400
committerGitHub <noreply@github.com>2020-07-27 12:21:34 -0400
commit8144bc26a7432463b7e70f9c03198d4724952522 (patch)
treea678eeec472c27e168dae14648e3ce269ff77377 /tests/storage
parentupdate changelog (diff)
downloadsynapse-8144bc26a7432463b7e70f9c03198d4724952522.tar.xz
Convert push to async/await. (#7948)
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_event_push_actions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/storage/test_event_push_actions.py b/tests/storage/test_event_push_actions.py
index b45bc9c115..43dbeb42c5 100644
--- a/tests/storage/test_event_push_actions.py
+++ b/tests/storage/test_event_push_actions.py
@@ -72,8 +72,10 @@ class EventPushActionsStoreTestCase(tests.unittest.TestCase):
             event.internal_metadata.stream_ordering = stream
             event.depth = stream
 
-            yield self.store.add_push_actions_to_staging(
-                event.event_id, {user_id: action}
+            yield defer.ensureDeferred(
+                self.store.add_push_actions_to_staging(
+                    event.event_id, {user_id: action}
+                )
             )
             yield self.store.db.runInteraction(
                 "",