Skip to content

Commit

Permalink
rather use code from KibanaShuttingDownError
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Mar 7, 2022
1 parent 9b1f5ab commit e58b9b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('Execute Report Task', () => {
expect(store.setReportFailed).toHaveBeenCalledWith(
expect.anything(),
expect.objectContaining({
output: expect.objectContaining({ error_code: 'kibana_shutting_down_error' }),
output: expect.objectContaining({ error_code: new KibanaShuttingDownError().code }),
})
);
});
Expand Down

0 comments on commit e58b9b1

Please sign in to comment.