Skip to content
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: handle unhandled promise rejections #303

Merged
merged 4 commits into from
Jun 16, 2022

Conversation

mdebarros
Copy link
Member

@mdebarros mdebarros commented Jun 14, 2022

  • added catch to fire-and-forget promises that are not "handled", otherwise the nodejs process would just exit on the unhandled promise, causing the k8s pods to restart during GP tests
  • updated unit tests to correctly reject promises instead of just throwing an error (i.e. made mocked functions async), also check for rejections, and fix code-coverage issues
  • updated dependencies
  • fixed audit-resolve issues

- added catch to fire-and-forget promises that are not "handled"
- updated dependencies
- added missing catch on unhandled fire-and-forget promises
- updated unit tests to correctly throw a rejection instead of just throwing an error
Copy link
Contributor

@gibaros gibaros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@mdebarros mdebarros merged commit 802e627 into master Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants