Skip to content

Commit

Permalink
[Endpoint] Fix flaky endpoints list unit test (#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 <[email protected]>
  • Loading branch information
paul-tavares and elasticmachine authored Jun 19, 2020
1 parent 6fe244e commit 9a41c1d
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 9a41c1d

Please sign in to comment.