[APM] Unskip get environment test (#188010)

Fixes [177305](https://github.com/elastic/kibana/issues/177305)

## Summary

Another problem related to synthtrace not completing the creation of
docs before the test case execution

https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6514
This commit is contained in:
Carlos Crespo 2024-07-11 13:29:53 +02:00 committed by GitHub
parent ce9cadf899
commit 976fed697d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View file

@ -63,5 +63,5 @@ export async function generateData({
return [...loopGeneratedDocs, customDoc];
});
await apmSynthtraceEsClient.index(docs);
return apmSynthtraceEsClient.index(docs);
}

View file

@ -19,15 +19,14 @@ export default function environmentsAPITests({ getService }: FtrProviderContext)
const apmApiClient = getService('apmApiClient');
const apmSynthtraceEsClient = getService('apmSynthtraceEsClient');
// FLAKY: https://github.com/elastic/kibana/issues/177305
registry.when('environments when data is loaded', { config: 'basic', archives: [] }, async () => {
before(async () => {
await generateData({
before(async () =>
generateData({
apmSynthtraceEsClient,
start: startNumber,
end: endNumber,
});
});
})
);
after(() => apmSynthtraceEsClient.clean());