Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unknown product test flaky behavior #148616

Merged
merged 3 commits into from
Jan 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function createFakeElasticsearchServer() {
}

// FLAKY: https://github.com/elastic/kibana/issues/129754
describe.skip('fake elasticsearch', () => {
describe('fake elasticsearch', () => {
let esServer: http.Server;
let kibanaServer: Root;
let kibanaHttpServer: http.Server;
Expand All @@ -81,6 +81,10 @@ describe.skip('fake elasticsearch', () => {
const kibanaPreboot = await kibanaServer.preboot();
kibanaHttpServer = kibanaPreboot.http.server.listener; // Mind that we are using the prebootServer at this point because the migration gets hanging, while waiting for ES to be correct
await kibanaServer.setup();
// give kibanaServer's status Observables enough time to bootstrap
// and emit a status after the initial "unavailable: Waiting for Elasticsearch"
// see https://github.com/elastic/kibana/issues/129754
await new Promise((resolve) => setTimeout(resolve, 500));
});

afterAll(async () => {
Expand Down