diff --git a/auditbeat/tests/system/test_file_integrity.py b/auditbeat/tests/system/test_file_integrity.py index 08fef13d8e5..280d2916a55 100644 --- a/auditbeat/tests/system/test_file_integrity.py +++ b/auditbeat/tests/system/test_file_integrity.py @@ -62,7 +62,7 @@ def wait_output(self, min_events): else: break - @unittest.skipIf(os.getenv("BUILD_ID") is not None and platform.system() == 'Darwin', + @unittest.skipIf(os.getenv("CI") is not None and platform.system() == 'Darwin', 'Flaky test: https://github.com/elastic/beats/issues/24678') def test_non_recursive(self): """