diff --git a/x-pack/test/plugin_api_integration/test_suites/event_log/public_api_integration.ts b/x-pack/test/plugin_api_integration/test_suites/event_log/public_api_integration.ts index e5b840b335846f..16d79cee08ea90 100644 --- a/x-pack/test/plugin_api_integration/test_suites/event_log/public_api_integration.ts +++ b/x-pack/test/plugin_api_integration/test_suites/event_log/public_api_integration.ts @@ -83,7 +83,10 @@ export default function({ getService }: FtrProviderContext) { const [firstExpectedEvent, ...expectedEvents] = times(6, () => fakeEvent(id)); // run one first to create the SO and avoid clashes await logTestEvent(id, firstExpectedEvent); - await Promise.all(expectedEvents.map(event => logTestEvent(id, event))); + // stagger the API calls to ensure the creation order is as expected + for (let index = 0; index < expectedEvents.length; index++) { + await logTestEvent(id, expectedEvents[index]); + } await retry.try(async () => { const {