From 4ce20535c2b3d57a20f2d56899f04caa15a276df Mon Sep 17 00:00:00 2001 From: Paul Tavares Date: Thu, 18 Jun 2020 18:09:18 -0400 Subject: [PATCH] Fix flaky endpoints list unit test --- .../public/management/pages/endpoint_hosts/view/index.test.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.test.tsx b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.test.tsx index af027c2e106c3..a3e2a55fc7569 100644 --- a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.test.tsx @@ -175,6 +175,9 @@ describe('when on the hosts page', () => { status: overallStatus, }; policyResponse.Endpoint.policy.applied.actions.push(downloadModelAction); + } else { + // Else, make sure the status of the generated action matches what was passed in + downloadModelAction.status = overallStatus; } if (