Use empty hashes

This commit is contained in:
Erik Johnston
2026-05-14 17:12:13 +01:00
parent 3bf170e827
commit f85b41a65c
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class SendJoinParserTestCase(TestCase):
"sender": "@user:example.org",
"depth": 1,
"origin_server_ts": 1,
"hashes": {"sha256": ""},
"hashes": {},
"auth_events": [],
"prev_events": [],
}
+1 -1
View File
@@ -532,7 +532,7 @@ class ThirdPartyRulesTestCase(unittest.FederatingHomeserverTestCase):
"origin_server_ts": self.clock.time_msec(),
"prev_events": [],
"auth_events": [],
"hashes": {"sha256": ""},
"hashes": {},
"signatures": {},
"unsigned": {},
}
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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",
}