Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Failing Test] Fixes intermittent failures in audit log integration t…
…ests (#154935) resolves #119267 ## Summary As [discussed in the issue](#119267 (comment)), we believed the issue to be timing between file write and read, however this is not the case. I found that two 'saved_object_find' events were being logged - the expected user one (for a 'dashboard'), and one by the fleet app (for 'epm-packages'). Should the 'epm-packages' event get logged before the 'dashboard' event, the test fails because the first 'saved_object_find' event it finds does not contain the expected user data in the audit. This appears to happen much less frequently in CI than locally for whatever reason. ## Fix I have added additional criteria when looking for the 'saved_object_find' event so it will only find an event for a 'dashboard' object. ## Testing Flaky Test Runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2150
- Loading branch information