From 145047c5d1856d33b5ed88272e206970677cc126 Mon Sep 17 00:00:00 2001 From: Walter Rafelsberger Date: Thu, 30 Jun 2022 10:04:15 +0200 Subject: [PATCH] [ML] Adds status check. --- .../test/api_integration/apis/aiops/explain_log_rate_spikes.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x-pack/test/api_integration/apis/aiops/explain_log_rate_spikes.ts b/x-pack/test/api_integration/apis/aiops/explain_log_rate_spikes.ts index 015fbc97a3872..6d5789224a683 100644 --- a/x-pack/test/api_integration/apis/aiops/explain_log_rate_spikes.ts +++ b/x-pack/test/api_integration/apis/aiops/explain_log_rate_spikes.ts @@ -129,6 +129,9 @@ export default ({ getService }: FtrProviderContext) => { body: JSON.stringify(requestBody), }); + expect(response.ok).to.be(true); + expect(response.status).to.be(200); + const stream = response.body; expect(stream).not.to.be(null);