diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-07-28 16:09:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 16:09:53 -0400 |
commit | 3345c166a45cb4a8f87c583ee0476c2bca5c41bd (patch) | |
tree | 8bc5a87a123313c2da008e4a82d0621459b717c5 /tests/storage/test_room.py | |
parent | Add an option to disable purge in delete room admin API (#7964) (diff) | |
download | synapse-3345c166a45cb4a8f87c583ee0476c2bca5c41bd.tar.xz |
Convert storage layer to async/await. (#7963)
Diffstat (limited to 'tests/storage/test_room.py')
-rw-r--r-- | tests/storage/test_room.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/storage/test_room.py b/tests/storage/test_room.py index 1d77b4a2d6..a5f250d477 100644 --- a/tests/storage/test_room.py +++ b/tests/storage/test_room.py @@ -97,8 +97,10 @@ class RoomEventsStoreTestCase(unittest.TestCase): @defer.inlineCallbacks def inject_room_event(self, **kwargs): - yield self.storage.persistence.persist_event( - self.event_factory.create_event(room_id=self.room.to_string(), **kwargs) + yield defer.ensureDeferred( + self.storage.persistence.persist_event( + self.event_factory.create_event(room_id=self.room.to_string(), **kwargs) + ) ) @defer.inlineCallbacks |