diff options
author | Erik Johnston <erikj@jki.re> | 2019-01-25 15:59:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-25 15:59:36 +0000 |
commit | b6dce9b9fde07d450e22da479108b2859d3bd49d (patch) | |
tree | 13f3757fc0ad20bbf297830918b616da41ca3f1f /tests/storage/test_state.py | |
parent | Merge pull request #4471 from matrix-org/erikj/sqlite_native_upsert (diff) | |
parent | Newsfile (diff) | |
download | synapse-b6dce9b9fde07d450e22da479108b2859d3bd49d.tar.xz |
Merge pull request #4470 from matrix-org/erikj/require_format_version
Require event format version to parse or create events
Diffstat (limited to 'tests/storage/test_state.py')
-rw-r--r-- | tests/storage/test_state.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/storage/test_state.py b/tests/storage/test_state.py index 086a39d834..a1f99134dc 100644 --- a/tests/storage/test_state.py +++ b/tests/storage/test_state.py @@ -17,7 +17,7 @@ import logging from twisted.internet import defer -from synapse.api.constants import EventTypes, Membership +from synapse.api.constants import EventTypes, Membership, RoomVersions from synapse.storage.state import StateFilter from synapse.types import RoomID, UserID @@ -52,6 +52,7 @@ class StateStoreTestCase(tests.unittest.TestCase): @defer.inlineCallbacks def inject_state_event(self, room, sender, typ, state_key, content): builder = self.event_builder_factory.new( + RoomVersions.V1, { "type": typ, "sender": sender.to_string(), |