diff --git a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/asset_criticality.ts b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/asset_criticality.ts index f4f684aeb7812..690e8f99b4611 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/asset_criticality.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/asset_criticality.ts @@ -86,15 +86,14 @@ export const assetCriticalityRouteHelpersFactory = ( upsert: async ( body: Record, { expectStatusCode }: { expectStatusCode: number } = { expectStatusCode: 200 } - ) => { + ) => await supertest .post(routeWithNamespace(ASSET_CRITICALITY_PUBLIC_URL, namespace)) .set('kbn-xsrf', 'true') .set(ELASTIC_HTTP_VERSION_HEADER, API_VERSIONS.public.v1) .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana') .send(body) - .expect(expectStatusCode); - }, + .expect(expectStatusCode), delete: async ( idField: string, idValue: string,