Skip to content

Commit

Permalink
fix:test settings
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Nov 30, 2024
1 parent 7ffe7ef commit 8b067fc
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions scheduler/tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@

settings.SCHEDULER_QUEUES = {
"default": {"HOST": "localhost", "PORT": 6379, "DB": 0, "DEFAULT_TIMEOUT": 500},
"test": {
"HOST": "localhost",
"PORT": 1,
"DB": 1,
},
"test": {"HOST": "localhost", "PORT": 1, "DB": 1},
"sentinel": {
"SENTINELS": [("localhost", 26736), ("localhost", 26737)],
"MASTER_NAME": "testmaster",
Expand Down Expand Up @@ -93,7 +89,8 @@
"DEFAULT_TIMEOUT": 400,
},
}
settings.SCHEDULER_CONFIG = dict(
FAKEREDIS=(os.getenv("FAKEREDIS", "False") == "True"),
)
if os.getenv("FAKEREDIS", "False") == "True":
for name, queue_settings in settings.SCHEDULER_QUEUES:
queue_settings["BROKER"] = "fakeredis"

conf_settings()

0 comments on commit 8b067fc

Please sign in to comment.