Skip to content

Commit

Permalink
use delay instead of silence
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Feb 8, 2021
1 parent da51a5a commit 7a31a69
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/kbn-test/src/functional_tests/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export async function runTests(options) {
try {
es = await runElasticsearch({ config, options: opts });
await runKibanaServer({ procs, config, options: opts });
// wait 5 seconds to let kibana startup completes
await silence(log, 5000);
// workaround until https://github.com/elastic/kibana/issues/89828 is addressed
await delay(5000);
await runFtr({ configPath, options: opts });
} finally {
try {
Expand Down Expand Up @@ -162,3 +162,7 @@ async function silence(log, milliseconds) {
)
.toPromise();
}

async function delay(ms) {
await new Promise((resolve) => setTimeout(resolve, ms));
}

0 comments on commit 7a31a69

Please sign in to comment.