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

Commit

Permalink
Move LEAVE_DB across to tests.server
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Dec 21, 2021
1 parent 9aea6ef commit d5b6480
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import hashlib
import json
import logging
import os
import time
import uuid
import warnings
Expand Down Expand Up @@ -66,7 +67,6 @@
from synapse.util import Clock

from tests.utils import (
LEAVE_DB,
POSTGRES_BASE_DB,
POSTGRES_HOST,
POSTGRES_PASSWORD,
Expand All @@ -79,6 +79,9 @@
logger = logging.getLogger(__name__)


LEAVE_DB = os.environ.get("SYNAPSE_LEAVE_DB", False)


class TimedOutException(Exception):
"""
A web query timed out.
Expand Down
1 change: 0 additions & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
# POSTGRES_BASE_DB and update it to the current schema. Then, for each test case, we
# create another unique database, using the base database as a template.
USE_POSTGRES_FOR_TESTS = os.environ.get("SYNAPSE_POSTGRES", False)
LEAVE_DB = os.environ.get("SYNAPSE_LEAVE_DB", False)
POSTGRES_USER = os.environ.get("SYNAPSE_POSTGRES_USER", None)
POSTGRES_HOST = os.environ.get("SYNAPSE_POSTGRES_HOST", None)
POSTGRES_PASSWORD = os.environ.get("SYNAPSE_POSTGRES_PASSWORD", None)
Expand Down

0 comments on commit d5b6480

Please sign in to comment.