Roiocam commented on code in PR #1388:
URL: https://github.com/apache/pekko/pull/1388#discussion_r1721114121


##########
actor-typed-tests/src/test/scala/org/apache/pekko/actor/typed/SupervisionSpec.scala:
##########
@@ -1232,34 +1222,33 @@ class SupervisionSpec extends 
ScalaTestWithActorTestKit("""
     "work with nested supervisions and defers" in {
       val strategy = SupervisorStrategy.restart.withLimit(3, 1.second)
       val probe = TestProbe[AnyRef]("p")
-      val beh = supervise[String](setup(_ =>
-        supervise[String](setup { _ =>
-          probe.ref ! Started
-          Behaviors.empty[String]
-        
}).onFailure[RuntimeException](strategy))).onFailure[Exception](strategy)
+      val behv = supervise[String](setup { _ =>

Review Comment:
   the PR https://github.com/apache/pekko/pull/1386 will keep the same behavior 
as the old way, it is just syntax sugar.
   
   i will make extra test for it, in case we want change it in the future.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to