Merge pull request #19886 from trautonen/drop-as-graphstage-trautonen

Replaced PushStage based Drop with GraphStage #19834
This commit is contained in:
Johan Andrén 2016-02-28 17:55:18 +01:00
commit 1c40d64d62
4 changed files with 24 additions and 13 deletions

View file

@ -16,6 +16,9 @@ class InterpreterStressSpec extends AkkaSpec with GraphInterpreterSpecKit {
val map = Map((x: Int) x + 1, stoppingDecider).toGS
// GraphStage can be reused
val dropOne = Drop(1)
"Interpreter" must {
"work with a massive chain of maps" in new OneBoundedSetup[Int](Vector.fill(chainLength)(map): _*) {
@ -80,7 +83,7 @@ class InterpreterStressSpec extends AkkaSpec with GraphInterpreterSpecKit {
}
"work with a massive chain of drops" in new OneBoundedSetup[Int](Vector.fill(chainLength / 1000)(Drop(1))) {
"work with a massive chain of drops" in new OneBoundedSetup[Int](Vector.fill(chainLength / 1000)(dropOne): _*) {
lastEvents() should be(Set.empty)
downstream.requestOne()