-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Handle exceptions thrown from stop hooks #8498
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
Handle exceptions thrown from stop hooks #8498
Conversation
| buffer.toList must beEqualTo(List(3, 2, 1)) | ||
| } | ||
|
|
||
| "continue when a hook returns a failed future" in { |
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.
This one already passed, but there wasn't an existing test for this behavior.
| buffer.toList must beEqualTo(List(3, 1)) | ||
| } | ||
|
|
||
| "continue when a hook throws an exception" in { |
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.
This tests the change to DefaultApplicationLifecycle above (and fails without it).
marcospereira
left a comment
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.
👍
|
Backport to 2.6.x: 122629f |
Related to #8497 (comment)