summary refs log tree commit diff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2019-06-06 20:13:47 +0100
committerGitHub <noreply@github.com>2019-06-06 20:13:47 +0100
commita11865016e4fc8f691ce94ec25e8f40290df8329 (patch)
treeea9dd191be54c110a842297c93bec1f5e3d35443 /tests/utils.py
parentMerge pull request #5320 from matrix-org/hawkowl/full-schema-v1 (diff)
downloadsynapse-a11865016e4fc8f691ce94ec25e8f40290df8329.tar.xz
Set default room version to v4. (#5379)
Set default room version to v4.
Diffstat (limited to '')
-rw-r--r--tests/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py
index b2817cf22c..f8c7ad2604 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -31,6 +31,7 @@ from synapse.api.constants import EventTypes
 from synapse.api.errors import CodeMessageException, cs_error
 from synapse.api.room_versions import RoomVersions
 from synapse.config.homeserver import HomeServerConfig
+from synapse.config.server import DEFAULT_ROOM_VERSION
 from synapse.federation.transport import server as federation_server
 from synapse.http.server import HttpServer
 from synapse.server import HomeServer
@@ -173,7 +174,7 @@ def default_config(name, parse=False):
         "use_frozen_dicts": False,
         # We need a sane default_room_version, otherwise attempts to create
         # rooms will fail.
-        "default_room_version": "1",
+        "default_room_version": DEFAULT_ROOM_VERSION,
         # disable user directory updates, because they get done in the
         # background, which upsets the test runner.
         "update_user_directory": False,