=str #15960 Fix broken FlowGraphCompileSpec
* FlowGraphCompileSpec broke when merging in the unzip on top of the variance adjustements * JunctionOutPort[T] must not be defined like JunctionOutPort[+T] because then the NextT = Nothing doesn't work * Do we have a reason to use JunctionOutPort[+T]? I added +T only for symmetry reasons with JunctionInPort[-T].
This commit is contained in:
parent
c272d9afa5
commit
08a0014fe7
2 changed files with 7 additions and 1 deletions
|
|
@ -315,6 +315,8 @@ class FlowGraphCompileSpec extends AkkaSpec {
|
|||
val outA = SubscriberSink(SubscriberProbe[Fruit]())
|
||||
val outB = SubscriberSink(SubscriberProbe[Fruit]())
|
||||
val merge = Merge[Fruit]
|
||||
val unzip = Unzip[Int, String]
|
||||
val whatever = PublisherSink[Any]
|
||||
import FlowGraphImplicits._
|
||||
FlowFrom[Fruit](() ⇒ Some(new Apple)) ~> merge
|
||||
FlowFrom[Apple](() ⇒ Some(new Apple)) ~> merge
|
||||
|
|
@ -332,6 +334,10 @@ class FlowGraphCompileSpec extends AkkaSpec {
|
|||
FlowFrom[Apple](() ⇒ Some(new Apple)) ~> Broadcast[Apple] ~> UndefinedSink[Fruit]
|
||||
inB ~> Broadcast[Apple] ~> merge
|
||||
|
||||
FlowFrom(List(1 -> "a", 2 -> "b", 3 -> "c")) ~> unzip.in
|
||||
unzip.right ~> whatever
|
||||
unzip.left ~> UndefinedSink[Any]
|
||||
|
||||
"UndefinedSource[Fruit] ~> FlowFrom[Apple].map(identity) ~> merge" shouldNot compile
|
||||
"UndefinedSource[Fruit] ~> Broadcast[Apple]" shouldNot compile
|
||||
"merge ~> Broadcast[Apple]" shouldNot compile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue