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-30 07:20:41 -0400
committerGitHub <noreply@github.com>2020-07-30 07:20:41 -0400
commitb3a97d6dac7f9f619b02e213bb8a745d65983d0d (patch)
tree6f5172267973b93553eda36c60821463a00eb90d /tests/storage/test_state.py
parentEnsure that remove_pusher is always async (#7981) (diff)
downloadsynapse-b3a97d6dac7f9f619b02e213bb8a745d65983d0d.tar.xz
Convert some of the data store to async. (#7976)
Diffstat (limited to 'tests/storage/test_state.py')
-rw-r--r--tests/storage/test_state.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/storage/test_state.py b/tests/storage/test_state.py
index 6a48b9d3b3..8bd12fa847 100644
--- a/tests/storage/test_state.py
+++ b/tests/storage/test_state.py
@@ -44,11 +44,13 @@ class StateStoreTestCase(tests.unittest.TestCase):
 
         self.room = RoomID.from_string("!abc123:test")
 
-        yield self.store.store_room(
-            self.room.to_string(),
-            room_creator_user_id="@creator:text",
-            is_public=True,
-            room_version=RoomVersions.V1,
+        yield defer.ensureDeferred(
+            self.store.store_room(
+                self.room.to_string(),
+                room_creator_user_id="@creator:text",
+                is_public=True,
+                room_version=RoomVersions.V1,
+            )
         )
 
     @defer.inlineCallbacks