mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 01:30:20 +00:00
Reduce the swarm minions count
Newer coverage library versions consume more memory and this will avoid consuming it all and not finishing the test suite. Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
d53eff39fd
commit
b44f80163a
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ def salt_cli(salt_master):
|
|||
@pytest.fixture(scope="package")
|
||||
def minion_count():
|
||||
# Allow this to be changed via an environment variable if needed
|
||||
return int(os.environ.get("SALT_CI_MINION_SWARM_COUNT", 20))
|
||||
return int(os.environ.get("SALT_CI_MINION_SWARM_COUNT", 15))
|
||||
|
||||
|
||||
@pytest.fixture(scope="package")
|
||||
|
@ -53,7 +53,7 @@ def minion_swarm(salt_master, minion_count):
|
|||
with ExitStack() as stack:
|
||||
for idx in range(minion_count):
|
||||
minion_factory = salt_master.salt_minion_daemon(
|
||||
random_string("swarm-minion-{}-".format(idx)),
|
||||
random_string(f"swarm-minion-{idx}-"),
|
||||
extra_cli_arguments_after_first_start_failure=["--log-level=info"],
|
||||
)
|
||||
stack.enter_context(minion_factory.started())
|
||||
|
|
Loading…
Add table
Reference in a new issue