summary refs log tree commit diff
path: root/tests/server.py
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-04-05 12:44:48 +0100
committerGitHub <noreply@github.com>2022-04-05 12:44:48 +0100
commit708d88b1a22d422c294c4d06f2896a24f2a0251d (patch)
treeb000fd7958d2da40bb7de58d3575d5cf271d1d3e /tests/server.py
parentMerge tag 'v1.56.0rc1' into develop (diff)
downloadsynapse-708d88b1a22d422c294c4d06f2896a24f2a0251d.tar.xz
Allow specifying the Postgres database's port when running unit tests with Postgres. (#12376)
Diffstat (limited to 'tests/server.py')
-rw-r--r--tests/server.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/server.py b/tests/server.py

index aaa5ca3e74..16559d2588 100644 --- a/tests/server.py +++ b/tests/server.py
@@ -76,6 +76,7 @@ from tests.utils import ( POSTGRES_BASE_DB, POSTGRES_HOST, POSTGRES_PASSWORD, + POSTGRES_PORT, POSTGRES_USER, SQLITE_PERSIST_DB, USE_POSTGRES_FOR_TESTS, @@ -747,6 +748,7 @@ def setup_test_homeserver( "host": POSTGRES_HOST, "password": POSTGRES_PASSWORD, "user": POSTGRES_USER, + "port": POSTGRES_PORT, "cp_min": 1, "cp_max": 5, }, @@ -786,6 +788,7 @@ def setup_test_homeserver( database=POSTGRES_BASE_DB, user=POSTGRES_USER, host=POSTGRES_HOST, + port=POSTGRES_PORT, password=POSTGRES_PASSWORD, ) db_conn.autocommit = True @@ -833,6 +836,7 @@ def setup_test_homeserver( database=POSTGRES_BASE_DB, user=POSTGRES_USER, host=POSTGRES_HOST, + port=POSTGRES_PORT, password=POSTGRES_PASSWORD, ) db_conn.autocommit = True