diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-01-29 17:40:33 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-01-30 22:15:50 +0000 |
commit | 2a81393a4b905c8bd4c31da04a8b4407462948b9 (patch) | |
tree | 062611788be62dbd6a6b8bf50a60f1f8d5ef95f4 /tests | |
parent | Pass room_version into create_local_event_from_event_dict (diff) | |
download | synapse-2a81393a4b905c8bd4c31da04a8b4407462948b9.tar.xz |
Pass room_version into add_hashes_and_signatures
Diffstat (limited to 'tests')
-rw-r--r-- | tests/crypto/test_event_signing.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/crypto/test_event_signing.py b/tests/crypto/test_event_signing.py index 126e176004..6143a50ab2 100644 --- a/tests/crypto/test_event_signing.py +++ b/tests/crypto/test_event_signing.py @@ -17,6 +17,7 @@ import nacl.signing from unpaddedbase64 import decode_base64 +from synapse.api.room_versions import RoomVersions from synapse.crypto.event_signing import add_hashes_and_signatures from synapse.events import FrozenEvent @@ -49,7 +50,9 @@ class EventSigningTestCase(unittest.TestCase): "unsigned": {"age_ts": 1000000}, } - add_hashes_and_signatures(event_dict, HOSTNAME, self.signing_key) + add_hashes_and_signatures( + RoomVersions.V1, event_dict, HOSTNAME, self.signing_key + ) event = FrozenEvent(event_dict) @@ -81,7 +84,9 @@ class EventSigningTestCase(unittest.TestCase): "unsigned": {"age_ts": 1000000}, } - add_hashes_and_signatures(event_dict, HOSTNAME, self.signing_key) + add_hashes_and_signatures( + RoomVersions.V1, event_dict, HOSTNAME, self.signing_key + ) event = FrozenEvent(event_dict) |