Skip to content

Commit

Permalink
Increase start_timeout to avoid test to be flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
meaksh committed Jul 27, 2023
1 parent c3ed0f3 commit 85bc0c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/pytests/integration/cli/test_salt_minion.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_exit_status_unknown_user(salt_master, minion_id):
factory = salt_master.salt_minion_daemon(
minion_id, overrides={"user": "unknown-user"}
)
factory.start(start_timeout=10, max_start_attempts=1)
factory.start(start_timeout=30, max_start_attempts=1)

assert exc.value.process_result.returncode == salt.defaults.exitcodes.EX_NOUSER
assert "The user is not available." in exc.value.process_result.stderr
Expand All @@ -53,7 +53,7 @@ def test_exit_status_unknown_argument(salt_master, minion_id):
"""
with pytest.raises(FactoryNotStarted) as exc:
factory = salt_master.salt_minion_daemon(minion_id)
factory.start("--unknown-argument", start_timeout=10, max_start_attempts=1)
factory.start("--unknown-argument", start_timeout=30, max_start_attempts=1)

assert exc.value.process_result.returncode == salt.defaults.exitcodes.EX_USAGE
assert "Usage" in exc.value.process_result.stderr
Expand Down

0 comments on commit 85bc0c9

Please sign in to comment.