diff --git a/src/core/server/integration_tests/saved_objects/jest.integration.config.js b/src/core/server/integration_tests/saved_objects/jest.integration.config.js index e0713af701ea..abafabc152d1 100644 --- a/src/core/server/integration_tests/saved_objects/jest.integration.config.js +++ b/src/core/server/integration_tests/saved_objects/jest.integration.config.js @@ -7,6 +7,7 @@ */ module.exports = { + bail: true, // only report 1 issue // TODO replace the line below with // preset: '@kbn/test/jest_integration_node // to do so, we must fix all integration tests first diff --git a/src/core/server/integration_tests/saved_objects/service/lib/repository.test.ts b/src/core/server/integration_tests/saved_objects/service/lib/repository.test.ts index 205d59f0536f..e2d002331f77 100644 --- a/src/core/server/integration_tests/saved_objects/service/lib/repository.test.ts +++ b/src/core/server/integration_tests/saved_objects/service/lib/repository.test.ts @@ -46,8 +46,10 @@ describe('SavedObjectsRepository', () => { }); afterAll(async () => { - await esServer.stop(); - await root.shutdown(); + if (root) { + await esServer.stop(); + await root.shutdown(); + } }); describe('#incrementCounter', () => { diff --git a/src/core/server/integration_tests/saved_objects/service/lib/repository_with_proxy.test.ts b/src/core/server/integration_tests/saved_objects/service/lib/repository_with_proxy.test.ts index 255658d7fbe7..db24bf5a1076 100644 --- a/src/core/server/integration_tests/saved_objects/service/lib/repository_with_proxy.test.ts +++ b/src/core/server/integration_tests/saved_objects/service/lib/repository_with_proxy.test.ts @@ -139,9 +139,11 @@ describe('404s from proxies', () => { }); afterAll(async () => { - await root.shutdown(); - await hapiServer.stop({ timeout: 1000 }); - await esServer.stop(); + if (root) { + await root.shutdown(); + await hapiServer.stop({ timeout: 1000 }); + await esServer.stop(); + } }); describe('requests when a proxy relays request/responses with the correct product header', () => {