diff options
author | Erik Johnston <erik@matrix.org> | 2019-12-06 10:14:59 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-12-06 10:40:05 +0000 |
commit | b3a4e35ca84a29fe4ccdfb1125ed098c68405d6c (patch) | |
tree | c13726e0a0d0d3e54af885af13526a97a41490d8 /tests/rest/client/v1 | |
parent | Newsfile (diff) | |
download | synapse-b3a4e35ca84a29fe4ccdfb1125ed098c68405d6c.tar.xz |
Fixup functions to consistently return deferreds
Diffstat (limited to 'tests/rest/client/v1')
-rw-r--r-- | tests/rest/client/v1/test_typing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/rest/client/v1/test_typing.py b/tests/rest/client/v1/test_typing.py index 30fb77bac8..4bc3aaf02d 100644 --- a/tests/rest/client/v1/test_typing.py +++ b/tests/rest/client/v1/test_typing.py @@ -109,7 +109,9 @@ class RoomTypingTestCase(unittest.HomeserverTestCase): self.assertEquals(200, channel.code) self.assertEquals(self.event_source.get_current_key(), 1) - events = self.event_source.get_new_events(from_key=0, room_ids=[self.room_id]) + events = self.get_success( + self.event_source.get_new_events(from_key=0, room_ids=[self.room_id]) + ) self.assertEquals( events[0], [ |