Skip to content

Commit 4ce2053

Browse files
committed
Fix flaky endpoints list unit test
1 parent 55a7361 commit 4ce2053

File tree

1 file changed

+3
-0
lines changed
  • x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view

1 file changed

+3
-0
lines changed

x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ describe('when on the hosts page', () => {
175175
status: overallStatus,
176176
};
177177
policyResponse.Endpoint.policy.applied.actions.push(downloadModelAction);
178+
} else {
179+
// Else, make sure the status of the generated action matches what was passed in
180+
downloadModelAction.status = overallStatus;
178181
}
179182

180183
if (

0 commit comments

Comments
 (0)