Skip to content

Commit

Permalink
[Endpoint] Fix flaky endpoints list unit test (elastic#69591)
Browse files Browse the repository at this point in the history
* Fix flaky endpoints list unit test
* un-skip test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
paul-tavares and elasticmachine committed Jun 19, 2020
1 parent f34d87a commit 5d61e1d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -371,7 +374,7 @@ describe('when on the hosts page', () => {
});
});

describe.skip('when showing host Policy Response panel', () => {
describe('when showing host Policy Response panel', () => {
let renderResult: ReturnType<typeof render>;
beforeEach(async () => {
coreStart.http.post.mockImplementation(async (requestOptions) => {
Expand Down

0 comments on commit 5d61e1d

Please sign in to comment.