mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-19 00:55:09 +00:00
Use empty hashes
This commit is contained in:
@@ -40,7 +40,7 @@ class SendJoinParserTestCase(TestCase):
|
||||
"sender": "@user:example.org",
|
||||
"depth": 1,
|
||||
"origin_server_ts": 1,
|
||||
"hashes": {"sha256": ""},
|
||||
"hashes": {},
|
||||
"auth_events": [],
|
||||
"prev_events": [],
|
||||
}
|
||||
|
||||
@@ -532,7 +532,7 @@ class ThirdPartyRulesTestCase(unittest.FederatingHomeserverTestCase):
|
||||
"origin_server_ts": self.clock.time_msec(),
|
||||
"prev_events": [],
|
||||
"auth_events": [],
|
||||
"hashes": {"sha256": ""},
|
||||
"hashes": {},
|
||||
"signatures": {},
|
||||
"unsigned": {},
|
||||
}
|
||||
|
||||
@@ -495,7 +495,7 @@ class StateResV21TestCase(unittest.HomeserverTestCase):
|
||||
"prev_events": prev_events,
|
||||
"auth_events": auth_events,
|
||||
"origin_server_ts": monotonic_timestamp(),
|
||||
"hashes": {"sha256": ""},
|
||||
"hashes": {},
|
||||
}
|
||||
if event_type != EventTypes.Create:
|
||||
if room_id is None:
|
||||
|
||||
@@ -32,7 +32,7 @@ def default_event_fields(room_version: RoomVersion) -> JsonDict:
|
||||
"content": {},
|
||||
"depth": 1,
|
||||
"origin_server_ts": 1,
|
||||
"hashes": {"sha256": ""},
|
||||
"hashes": {},
|
||||
"prev_events": [],
|
||||
"room_id": "!test:test",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user