diff --git a/akka-http-core/src/test/scala/akka/stream/testkit/Utils.scala b/akka-http-core/src/test/scala/akka/stream/testkit/Utils.scala index 0303dfd6709..f2a1376d6d8 100644 --- a/akka-http-core/src/test/scala/akka/stream/testkit/Utils.scala +++ b/akka-http-core/src/test/scala/akka/stream/testkit/Utils.scala @@ -24,8 +24,6 @@ object Utils { def assertAllStagesStopped[T](block: ⇒ T)(implicit materializer: Materializer): T = { val impl = materializer.asInstanceOf[ActorMaterializerImpl] // refined type, will never fail - val supervisor = impl.supervisor // will fail here instead - val system = impl.system val probe = TestProbe()(impl.system) probe.send(impl.supervisor, StreamSupervisor.StopChildren) probe.expectMsg(StreamSupervisor.StoppedChildren)