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: additional mailbox selector method on Props #32082
Conversation
akka-actor-typed-tests/src/test/scala/akka/actor/typed/DispatcherSpec.scala
Outdated
Show resolved
Hide resolved
akka-actor-typed/src/main/scala/akka/actor/typed/internal/adapter/PropsAdapter.scala
Outdated
Show resolved
Hide resolved
akka-actor-typed-tests/src/test/scala/akka/actor/typed/DispatcherSelectorSpec.scala
Outdated
Show resolved
Hide resolved
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.
looking good, just a few minor comments in the test
akka-actor-typed-tests/src/test/scala/akka/actor/typed/DispatcherSelectorSpec.scala
Outdated
Show resolved
Hide resolved
akka-actor-typed-tests/src/test/scala/akka/actor/typed/DispatcherSelectorSpec.scala
Outdated
Show resolved
Hide resolved
akka-actor-typed-tests/src/test/scala/akka/actor/typed/DispatcherSelectorSpec.scala
Outdated
Show resolved
Hide resolved
akka-actor-typed-tests/src/test/scala/akka/actor/typed/DispatcherSelectorSpec.scala
Outdated
Show resolved
Hide resolved
parentProbe.ref) | ||
|
||
val childProbe = createTestProbe[ActorRef[Ping]]() | ||
grandParent ! SpawnProtocol.Spawn(PingPong(), "child", Props.empty.withDispatcherSameAsParent, childProbe.ref) |
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 seems that the 'parent' and 'child' do not spawn with a vertical hierarchy, but rather a horizontal hierarchy.
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.
yes, seems to be a mistake, it's spawning from grandParent twice
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, thanks
parentProbe.ref) | ||
|
||
val childProbe = createTestProbe[ActorRef[Ping]]() | ||
grandParent ! SpawnProtocol.Spawn(PingPong(), "child", Props.empty.withDispatcherSameAsParent, childProbe.ref) |
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.
yes, seems to be a mistake, it's spawning from grandParent twice
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, thanks!
References #31862
Returning an empty mailbox is not a problem in PropsAdapter.