From c9e26a49d1ed3909337982b8af7537106e4a848f Mon Sep 17 00:00:00 2001 From: Kevin Lacabane Date: Mon, 16 Dec 2024 17:40:14 +0100 Subject: [PATCH] [eem] fix flaky _count test (#204399) Closes https://github.com/elastic/kibana/issues/204323 --- x-pack/test/api_integration/apis/entity_manager/count.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/x-pack/test/api_integration/apis/entity_manager/count.ts b/x-pack/test/api_integration/apis/entity_manager/count.ts index 79cce666c423a..710457651d732 100644 --- a/x-pack/test/api_integration/apis/entity_manager/count.ts +++ b/x-pack/test/api_integration/apis/entity_manager/count.ts @@ -20,8 +20,7 @@ export default function ({ getService }: FtrProviderContext) { const esClient = getService('es'); const supertest = getService('supertest'); - // Failing: See https://github.com/elastic/kibana/issues/204323 - describe.skip('_count API', () => { + describe('_count API', () => { let cleanup: Function[] = []; before(() => clearEntityDefinitions(esClient)); @@ -453,10 +452,10 @@ export default function ({ getService }: FtrProviderContext) { types: { chumble: 0, }, - errors: [ + errors: expect.arrayContaining([ 'No index found for source [source: source1-with-chumbles, type: chumble] with index patterns [index-1-with-chumbles]', 'No index found for source [source: source2-with-chumbles, type: chumble] with index patterns [index-2-with-chumbles]', - ], + ]), }); }); });