!str #18674 remove FlowGraph.Builder.add(Sink|Source)

This commit is contained in:
Roland Kuhn 2015-10-26 12:31:17 +01:00
parent 630bd948d5
commit 0c78cca7ed
5 changed files with 10 additions and 19 deletions

View file

@ -103,7 +103,7 @@ class BidiFlowSpec extends AkkaSpec with ConversionCheckedTripleEquals {
sink
val flow = b.add(Flow[Long].grouped(10))
flow ~> sink
FlowShape(flow.inlet, b.add(Source.single(ByteString("10"))))
FlowShape(flow.inlet, b.add(Source.single(ByteString("10"))).outlet)
})
val ((l, m), r) = left.joinMat(bidiMat)(Keep.both).joinMat(right)(Keep.both).run()
Await.result(l, 1.second) should ===(1)