From cfb1c259ccacef9ccc08f4ac3578e9c328b76ece Mon Sep 17 00:00:00 2001 From: Mike Cote Date: Thu, 29 Apr 2021 10:54:39 -0400 Subject: [PATCH] Remove flakiness in integration test --- .../security_and_spaces/tests/alerting/enable.ts | 1 - .../spaces_only/tests/alerting/enable.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/enable.ts b/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/enable.ts index 4dae456ed1cde..70e286b795720 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/enable.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/enable.ts @@ -119,7 +119,6 @@ export default function createEnableAlertTests({ getService }: FtrProviderContex .auth(user.username, user.password) .expect(200); expect(typeof updatedAlert.scheduled_task_id).to.eql('string'); - expect(updatedAlert.execution_status.status).to.eql('pending'); const { _source: taskRecord } = await getScheduledTask( updatedAlert.scheduled_task_id ); diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/enable.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/enable.ts index 843f446e33ec7..f0b0d1f34a277 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/enable.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/enable.ts @@ -49,7 +49,6 @@ export default function createEnableAlertTests({ getService }: FtrProviderContex .set('kbn-xsrf', 'foo') .expect(200); expect(typeof updatedAlert.scheduled_task_id).to.eql('string'); - expect(updatedAlert.execution_status.status).to.eql('pending'); const { _source: taskRecord } = await getScheduledTask(updatedAlert.scheduled_task_id); expect(taskRecord.type).to.eql('task'); expect(taskRecord.task.taskType).to.eql('alerting:test.noop');