diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_flapping.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_flapping.ts index 47d616b8b4449..9bab20d763fcb 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_flapping.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_flapping.ts @@ -26,7 +26,6 @@ import { TEST_CACHE_EXPIRATION_TIME } from '../../create_test_data'; // eslint-disable-next-line import/no-default-export export default function createAlertsAsDataFlappingTest({ getService }: FtrProviderContext) { const es = getService('es'); - const log = getService('log'); const retry = getService('retry'); const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); @@ -732,24 +731,14 @@ export default function createAlertsAsDataFlappingTest({ getService }: FtrProvid expect(response.status).to.eql(204); }); - const eventLogs = await waitForEventLogDocs( - ruleId, - new Map([['execute', { equal: ++run }]]) - ); + await waitForEventLogDocs(ruleId, new Map([['execute', { equal: ++run }]])); const alertDocs = await queryForAlertDocs(ruleId); const isFlapping = alertDocs[0]._source![ALERT_FLAPPING]; - log.debug(`Alert docs for run=${run}: ${JSON.stringify(alertDocs)}`); - log.debug(`Event log docs for run=${run}: ${JSON.stringify(eventLogs)}`); - if (!runWhichItFlapped && isFlapping) { runWhichItFlapped = run; } - - log.debug( - `runWhichItFlapped for run=${run}, isFlapping=${isFlapping}: ${runWhichItFlapped}` - ); } // Never flapped, since globl flapping is off