Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit d5b6480

Browse files
committed
Move LEAVE_DB across to tests.server
1 parent 9aea6ef commit d5b6480

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/server.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import hashlib
1515
import json
1616
import logging
17+
import os
1718
import time
1819
import uuid
1920
import warnings
@@ -66,7 +67,6 @@
6667
from synapse.util import Clock
6768

6869
from tests.utils import (
69-
LEAVE_DB,
7070
POSTGRES_BASE_DB,
7171
POSTGRES_HOST,
7272
POSTGRES_PASSWORD,
@@ -79,6 +79,9 @@
7979
logger = logging.getLogger(__name__)
8080

8181

82+
LEAVE_DB = os.environ.get("SYNAPSE_LEAVE_DB", False)
83+
84+
8285
class TimedOutException(Exception):
8386
"""
8487
A web query timed out.

tests/utils.py

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
# POSTGRES_BASE_DB and update it to the current schema. Then, for each test case, we
3737
# create another unique database, using the base database as a template.
3838
USE_POSTGRES_FOR_TESTS = os.environ.get("SYNAPSE_POSTGRES", False)
39-
LEAVE_DB = os.environ.get("SYNAPSE_LEAVE_DB", False)
4039
POSTGRES_USER = os.environ.get("SYNAPSE_POSTGRES_USER", None)
4140
POSTGRES_HOST = os.environ.get("SYNAPSE_POSTGRES_HOST", None)
4241
POSTGRES_PASSWORD = os.environ.get("SYNAPSE_POSTGRES_PASSWORD", None)

0 commit comments

Comments
 (0)