-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unhandled promise rejection #114233
Fix unhandled promise rejection #114233
Conversation
Pinging @elastic/uptime (Team:uptime) |
@elasticmachine merge upstream |
4a136ee
to
06e16e4
Compare
setPopoverIsOpen={setIsPopoverOpen} | ||
onApply={jest.fn()} | ||
/> | ||
</IntlProvider> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this needed to run the apm jest tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was triggering a warning error
setPopoverIsOpen={setIsPopoverOpen} | ||
onApply={jest.fn()} | ||
/> | ||
<IntlProvider locale="en"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can move this wrapper to the render method in '../../utils/test_helper'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uptime changes LGTM !!
💚 Build SucceededMetrics [docs]
To update your PR or re-run it, just comment with: |
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Closes #112895
Summary
The test x-pack/plugins/apm/public/components/routing/templates/settings_template.test.tsx contains unhandled promise rejections and causes the process to exit in Node 16 (upgrade pending).
All promise rejections should therefore be handled.
What was done