diff options
author | Erik Johnston <erik@matrix.org> | 2020-02-03 18:05:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 18:05:44 +0000 |
commit | b9391c957572224c3a7c22870102fcbd24dea4e0 (patch) | |
tree | cfd40c5ef65b057ef803bc972c9f7d713cde5f45 /tests/storage | |
parent | Fix stacktraces when using ObservableDeferred and async/await (#6836) (diff) | |
download | synapse-b9391c957572224c3a7c22870102fcbd24dea4e0.tar.xz |
Add typing to SyncHandler (#6821)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Diffstat (limited to 'tests/storage')
-rw-r--r-- | tests/storage/test_redaction.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/storage/test_redaction.py b/tests/storage/test_redaction.py index feb1c07cb2..b9ee6ec1ec 100644 --- a/tests/storage/test_redaction.py +++ b/tests/storage/test_redaction.py @@ -238,8 +238,11 @@ class RedactionTestCase(unittest.HomeserverTestCase): @defer.inlineCallbacks def build(self, prev_event_ids): built_event = yield self._base_builder.build(prev_event_ids) - built_event.event_id = self._event_id + + built_event._event_id = self._event_id built_event._event_dict["event_id"] = self._event_id + assert built_event.event_id == self._event_id + return built_event @property |