diff --git a/x-pack/test/security_solution_endpoint_api_int/apis/endpoint_response_actions/execute.ts b/x-pack/test/security_solution_endpoint_api_int/apis/endpoint_response_actions/execute.ts index 341f874e8e330..1234c45f9210f 100644 --- a/x-pack/test/security_solution_endpoint_api_int/apis/endpoint_response_actions/execute.ts +++ b/x-pack/test/security_solution_endpoint_api_int/apis/endpoint_response_actions/execute.ts @@ -16,8 +16,6 @@ export default function ({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); const endpointTestResources = getService('endpointTestResources'); - // FLAKY: https://github.com/elastic/kibana/issues/171666 - // FLAKY: https://github.com/elastic/kibana/issues/171667 describe('Endpoint `execute` response action', function () { targetTags(this, ['@ess', '@serverless']); @@ -30,7 +28,9 @@ export default function ({ getService }: FtrProviderContext) { }); after(async () => { - await endpointTestResources.unloadEndpointData(indexedData); + if (indexedData) { + await endpointTestResources.unloadEndpointData(indexedData); + } }); it('should not allow `execute` action without required privilege', async () => {