From e14ece8d3bb61a9c75a54e45a49a422dfefcdd96 Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Sat, 2 Mar 2024 00:32:39 -0700 Subject: [PATCH] Fix test timeouts --- .../pytests/functional/modules/state/requisites/test_unless.py | 2 ++ tests/pytests/integration/modules/grains/test_append.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/pytests/functional/modules/state/requisites/test_unless.py b/tests/pytests/functional/modules/state/requisites/test_unless.py index 237163da40c..97aa37a5006 100644 --- a/tests/pytests/functional/modules/state/requisites/test_unless.py +++ b/tests/pytests/functional/modules/state/requisites/test_unless.py @@ -6,6 +6,7 @@ pytestmark = [ ] +@pytest.mark.timeout(120) def test_unless_req(state): ret = state.single(fun="test.succeed_with_changes", name="unless test", unless=[{}]) assert ret.result is True @@ -35,6 +36,7 @@ def test_unless_req(state): assert ret.comment == "Success!" +@pytest.mark.timeout(120) def test_unless_req_retcode(state): ret = state.single( fun="test.succeed_with_changes", diff --git a/tests/pytests/integration/modules/grains/test_append.py b/tests/pytests/integration/modules/grains/test_append.py index f6d3fa3015b..0338d93ae51 100644 --- a/tests/pytests/integration/modules/grains/test_append.py +++ b/tests/pytests/integration/modules/grains/test_append.py @@ -106,7 +106,7 @@ def test_grains_append_val_is_list(salt_call_cli, append_grain): assert ret.data == {append_grain.key: [append_grain.value, second_grain]} -@pytest.mark.timeout_unless_on_windows(240) +@pytest.mark.timeout_unless_on_windows(300) def test_grains_remove_add( salt_call_cli, append_grain, wait_for_pillar_refresh_complete ):