summary refs log tree commit diff
path: root/tests/storage/test_room.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-07-28 10:15:22 +0100
committerRichard van der Hoff <richard@matrix.org>2020-07-28 10:15:22 +0100
commitb2ccc72a00dd234432226b9cae6aee2223a2eef8 (patch)
tree4e53a71c1de7245a79c67c441534d2757a4e54d6 /tests/storage/test_room.py
parentMerge branch 'develop' into matrix-org-hotfixes (diff)
parentHandle replication commands synchronously where possible (#7876) (diff)
downloadsynapse-b2ccc72a00dd234432226b9cae6aee2223a2eef8.tar.xz
Merge branch 'release-v1.18.0' into matrix-org-hotfixes
Diffstat (limited to 'tests/storage/test_room.py')
-rw-r--r--tests/storage/test_room.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/storage/test_room.py b/tests/storage/test_room.py

index b1dceb2918..1d77b4a2d6 100644 --- a/tests/storage/test_room.py +++ b/tests/storage/test_room.py
@@ -109,7 +109,9 @@ class RoomEventsStoreTestCase(unittest.TestCase): etype=EventTypes.Name, name=name, content={"name": name}, depth=1 ) - state = yield self.store.get_current_state(room_id=self.room.to_string()) + state = yield defer.ensureDeferred( + self.store.get_current_state(room_id=self.room.to_string()) + ) self.assertEquals(1, len(state)) self.assertObjectHasAttributes( @@ -125,7 +127,9 @@ class RoomEventsStoreTestCase(unittest.TestCase): etype=EventTypes.Topic, topic=topic, content={"topic": topic}, depth=1 ) - state = yield self.store.get_current_state(room_id=self.room.to_string()) + state = yield defer.ensureDeferred( + self.store.get_current_state(room_id=self.room.to_string()) + ) self.assertEquals(1, len(state)) self.assertObjectHasAttributes(