summary refs log tree commit diff
path: root/tests/handlers
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-01-29 17:55:48 +0000
committerRichard van der Hoff <richard@matrix.org>2020-01-30 22:15:50 +0000
commitef6bdafb29abe14cb40f6b83a46e70d82cd3e041 (patch)
tree1d65fb57a50386588b25383aa78bb099e795850d /tests/handlers
parentMSC2260: Block direct sends of m.room.aliases events (#6794) (diff)
downloadsynapse-ef6bdafb29abe14cb40f6b83a46e70d82cd3e041.tar.xz
Store the room version in EventBuilder
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/test_presence.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/handlers/test_presence.py b/tests/handlers/test_presence.py
index d4293b4312..69914428e2 100644
--- a/tests/handlers/test_presence.py
+++ b/tests/handlers/test_presence.py
@@ -19,7 +19,7 @@ from mock import Mock, call
 from signedjson.key import generate_signing_key
 
 from synapse.api.constants import EventTypes, Membership, PresenceState
-from synapse.events import room_version_to_event_format
+from synapse.api.room_versions import KNOWN_ROOM_VERSIONS
 from synapse.events.builder import EventBuilder
 from synapse.handlers.presence import (
     EXTERNAL_PROCESS_EXPIRY,
@@ -597,7 +597,7 @@ class PresenceJoinTestCase(unittest.HomeserverTestCase):
             clock=self.clock,
             hostname=hostname,
             signing_key=self.random_signing_key,
-            format_version=room_version_to_event_format(room_version),
+            room_version=KNOWN_ROOM_VERSIONS[room_version],
             room_id=room_id,
             type=EventTypes.Member,
             sender=user_id,