Skip to content

Commit

Permalink
increase timeout for ui settings integrations test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Jun 22, 2021
1 parent b45db3b commit a6e3751
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const kibanaVersion = Env.createDefault(REPO_ROOT, getEnvOptions()).packageInfo.
const savedObjectIndex = `.kibana_${kibanaVersion}_001`;

describe('uiSettings/routes', function () {
jest.setTimeout(10000);
jest.setTimeout(40_000);

beforeAll(startServers);
/* eslint-disable jest/valid-describe */
Expand Down
4 changes: 3 additions & 1 deletion src/core/server/ui_settings/integration_tests/lib/servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ export function getServices() {

export async function stopServers() {
services = null!;
if (servers) {
if (esServer) {
await esServer.stop();
}
if (kbn) {
await kbn.stop();
}
}

0 comments on commit a6e3751

Please sign in to comment.