diff options
author | Erik Johnston <erik@matrix.org> | 2020-01-31 13:39:22 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2020-01-31 13:39:22 +0000 |
commit | 3069d3b01c595115b0881917a55af9d58b5239f8 (patch) | |
tree | 196aa8ec1cf58888f68cab2f4d5b1e2e7004a1a8 | |
parent | Fix FrozenEventBase (diff) | |
download | synapse-3069d3b01c595115b0881917a55af9d58b5239f8.tar.xz |
Fix unit test
-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 |