-
Notifications
You must be signed in to change notification settings - Fork 148
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
chore: migrate tests to flatten supervise API #1388
Conversation
e36a234
to
e9c5edb
Compare
actor-typed-tests/src/test/scala/org/apache/pekko/actor/typed/SupervisionSpec.scala
Show resolved
Hide resolved
LoggingTestKit.error[Exc3].expect { | ||
spawn(behv) | ||
} | ||
} | ||
|
||
"support nesting exceptions with different strategies" in { | ||
def throwIOExceptionThenIllegalArgumentException(behvFactory: ActorRef[Event] => Behavior[Command]): Unit = { |
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.
"support nesting exceptions with outer restart and inner backoff strategies" in {
and
"support nesting exceptions with different strategies" in {
almost same, Therefore, it is compressed into the same method here
dde6473
to
fc4b0c4
Compare
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.
lgtm
continue #1386, separate PR for test migration