Skip to content

Commit 9968d04

Browse files
committed
fix test
1 parent 260bab7 commit 9968d04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/scheduler/test_config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def test_no_workers() -> None:
88

99
async def test_no_queues() -> None:
1010
task_consumer = TaskConsumer(broker_url="redis://localhost:7777?queues=")
11-
assert task_consumer.config.max_concurrent_tasks == 10
11+
assert task_consumer.config.max_concurrent_tasks == 5
1212
assert task_consumer.broker.task_queue_names == ()
1313
assert await task_consumer.broker.queue_length() == {}
1414

@@ -17,7 +17,7 @@ async def test_two_queues() -> None:
1717
task_consumer = TaskConsumer(
1818
broker_url="redis://localhost:7777?name=test&queues=medium,high"
1919
)
20-
assert task_consumer.config.max_concurrent_tasks == 10
20+
assert task_consumer.config.max_concurrent_tasks == 5
2121
assert task_consumer.broker.task_queue_names == (
2222
"test-queue-medium",
2323
"test-queue-high",

0 commit comments

Comments
 (0)