diff --git a/tests/pytests/integration/daemons/test_memory_leak.py b/tests/pytests/integration/daemons/test_memory_leak.py index aa241ec67dc..8417689ea58 100644 --- a/tests/pytests/integration/daemons/test_memory_leak.py +++ b/tests/pytests/integration/daemons/test_memory_leak.py @@ -10,8 +10,6 @@ pytest.mark.timeout_unless_on_windows(360), ] -GITHUB_ACTIONS = bool(os.getenv("GITHUB_ACTIONS")) - @pytest.fixture def file_add_delete_sls(tmp_path, salt_master): diff --git a/tests/pytests/scenarios/failover/multimaster/test_failover_master.py b/tests/pytests/scenarios/failover/multimaster/test_failover_master.py index 716d75d76c4..72c6c60c6ca 100644 --- a/tests/pytests/scenarios/failover/multimaster/test_failover_master.py +++ b/tests/pytests/scenarios/failover/multimaster/test_failover_master.py @@ -12,10 +12,8 @@ log = logging.getLogger(__name__) -GITHUB_ACTIONS = bool(os.getenv("GITHUB_ACTIONS")) - -@pytest.mark.skipif(GITHUB_ACTIONS, reason="Test is failing in GitHub Actions") +@pytest.mark.skip_on_env("GITHUB_ACTIONS", present=True) def test_pki(salt_mm_failover_master_1, salt_mm_failover_master_2, caplog): """ Verify https://docs.saltproject.io/en/latest/topics/tutorials/multimaster_pki.html