Skip to content

Commit

Permalink
Fix the max_parallel pytest failure
Browse files Browse the repository at this point in the history
  • Loading branch information
cvaroqui committed Apr 30, 2021
1 parent 7a8e1bc commit 3549cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opensvc/tests/daemon/monitor/test_orchestrator_start.py
Expand Up @@ -682,7 +682,7 @@ def test_monitor_respect_priority_and_max_parallel(
monitor_test.service_command_factory()
monitor_test.prepare_monitor_idle()
monitor_test.monitor._lazy_ready_period = 0.001
max_parallel = 3
max_parallel = 4
shared.NODE._lazy_max_parallel = max_parallel
# service list ordered by priority
services = [
Expand All @@ -708,7 +708,7 @@ def test_monitor_respect_priority_and_max_parallel(
for expected_service_start in [services[0:4], services[4:8], services[8:12]]:
monitor_test.log('COMMENT: ensure start of %s', expected_service_start)
monitor_test.do()
count += max_parallel + 1
count += max_parallel
for svc in expected_service_start:
monitor_test.assert_command_has_been_launched([
call(svc, ["start"]),
Expand Down

0 comments on commit 3549cde

Please sign in to comment.