summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-11-09 14:40:45 -0500
committerGitHub <noreply@github.com>2023-11-09 14:40:45 -0500
commitbc4372ad81f5037e107a608d4736161ba86bb201 (patch)
tree4480845db462fe38a403927e96cd77fbcbdee20e /tests
parentUse _invalidate_cache_and_stream_bulk in more places. (#16616) (diff)
downloadsynapse-bc4372ad81f5037e107a608d4736161ba86bb201.tar.xz
Use dbname instead of database for Postgres config. (#16618)
Diffstat (limited to 'tests')
-rw-r--r--tests/server.py6
-rw-r--r--tests/utils.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/server.py b/tests/server.py
index c8342db399..5a63ecee9f 100644
--- a/tests/server.py
+++ b/tests/server.py
@@ -974,7 +974,7 @@ def setup_test_homeserver(
         database_config = {
             "name": "psycopg2",
             "args": {
-                "database": test_db,
+                "dbname": test_db,
                 "host": POSTGRES_HOST,
                 "password": POSTGRES_PASSWORD,
                 "user": POSTGRES_USER,
@@ -1033,7 +1033,7 @@ def setup_test_homeserver(
         import psycopg2.extensions
 
         db_conn = db_engine.module.connect(
-            database=POSTGRES_BASE_DB,
+            dbname=POSTGRES_BASE_DB,
             user=POSTGRES_USER,
             host=POSTGRES_HOST,
             port=POSTGRES_PORT,
@@ -1080,7 +1080,7 @@ def setup_test_homeserver(
 
             # Drop the test database
             db_conn = db_engine.module.connect(
-                database=POSTGRES_BASE_DB,
+                dbname=POSTGRES_BASE_DB,
                 user=POSTGRES_USER,
                 host=POSTGRES_HOST,
                 port=POSTGRES_PORT,
diff --git a/tests/utils.py b/tests/utils.py
index e73b46944b..a0c87ad628 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -80,7 +80,7 @@ def setupdb() -> None:
 
         # Set up in the db
         db_conn = db_engine.module.connect(
-            database=POSTGRES_BASE_DB,
+            dbname=POSTGRES_BASE_DB,
             user=POSTGRES_USER,
             host=POSTGRES_HOST,
             port=POSTGRES_PORT,