fix InterpreterStressSpec GC problem

This commit is contained in:
Roland Kuhn 2016-01-20 17:26:21 +01:00
parent e5baba2b29
commit 96b5bdacd6
2 changed files with 12 additions and 9 deletions

View file

@ -299,10 +299,12 @@ trait GraphInterpreterSpecKit extends AkkaSpec {
}
implicit class ToGraphStage[I, O](stage: Stage[I, O]) {
def toGS =
def toGS: PushPullGraphStage[Any, Any, Any] = {
val s = stage
new PushPullGraphStage[Any, Any, Any](
(_) stage.asInstanceOf[Stage[Any, Any]],
(_) s.asInstanceOf[Stage[Any, Any]],
Attributes.none)
}
}
abstract class OneBoundedSetup[T](_ops: GraphStageWithMaterializedValue[Shape, Any]*) extends Builder {