mdedetrich commented on code in PR #1207:
URL: https://github.com/apache/incubator-pekko/pull/1207#discussion_r1529105068


##########
stream-tests/src/test/scala/org/apache/pekko/stream/scaladsl/FlowSplitAfterSpec.scala:
##########
@@ -250,10 +248,10 @@ class FlowSplitAfterSpec extends StreamSpec("""
       upstreamSubscription.sendNext(6)
       substreamPuppet1.expectNext(6)
       substreamPuppet1.expectComplete()
+      upstreamSubscription.sendNext(7)

Review Comment:
   So if I change the logic to
   
   ```scala
             case NonFatal(ex) =>
               decider(ex) match {
                 case Supervision.Resume  =>
                   if (decision == SplitAfter)
                     pushSubstreamSource()
                   else
                     pull(in)
                 case Supervision.Stop    => onUpstreamFailure(ex)
                 case Supervision.Restart => onUpstreamFailure(ex) // TODO 
implement restart?
               }
   ```
   
   This test now fails earlier on in the happy path, specifically at 
https://github.com/apache/incubator-pekko/blob/df3b9fccde6b7fbe7829703996379a055bc27b42/stream-tests/src/test/scala/org/apache/pekko/stream/scaladsl/FlowSplitAfterSpec.scala#L243
   
   Maybe the test really was just originally written incorrectly?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to