From e11be08aea32b3cf8cfbbc02ab26678ba7b5e77f Mon Sep 17 00:00:00 2001 From: Yuliia Naumenko Date: Wed, 12 Aug 2020 10:19:40 -0700 Subject: [PATCH] fixed failing tests --- .../actions_simulators/server/webhook_simulation.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/x-pack/test/alerting_api_integration/common/fixtures/plugins/actions_simulators/server/webhook_simulation.ts b/x-pack/test/alerting_api_integration/common/fixtures/plugins/actions_simulators/server/webhook_simulation.ts index ab7a89f1b9efc..44d8ea0c2da20 100644 --- a/x-pack/test/alerting_api_integration/common/fixtures/plugins/actions_simulators/server/webhook_simulation.ts +++ b/x-pack/test/alerting_api_integration/common/fixtures/plugins/actions_simulators/server/webhook_simulation.ts @@ -52,10 +52,13 @@ export async function initPlugin() { ); return; }); + } else { + request.on('end', () => { + response.statusCode = 400; + response.end('unknown request to webhook simulator [no content]'); + return; + }); } - response.statusCode = 400; - response.end('unknown request to webhook simulator [no content]'); - return; }); }