diff --git a/auditbeat/tests/system/test_file_integrity.py b/auditbeat/tests/system/test_file_integrity.py index 8b47f9b22e9..f8e7d9bfeb8 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): """