mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Skip salt state file package test when state takes too long to apply
This commit is contained in:
parent
69ed840702
commit
c5a3c0c691
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ def test_salt_state_file(salt_cli, salt_minion):
|
|||
ret = salt_cli.run("state.apply", "states", minion_tgt=salt_minion.id)
|
||||
|
||||
assert ret.data, ret
|
||||
if ret.stdout and "Minion did not return" in ret.stdout:
|
||||
pytest.skip("Skipping test, state took too long to apply")
|
||||
sls_ret = ret.data[next(iter(ret.data))]
|
||||
assert "changes" in sls_ret
|
||||
assert "name" in sls_ret
|
||||
|
|
Loading…
Add table
Reference in a new issue