From dd828fed1f4075f906069c5527aa1b07676a193e Mon Sep 17 00:00:00 2001 From: Konrad Malawski Date: Fri, 3 Apr 2015 15:50:41 +0200 Subject: [PATCH] =typ #17137 increase await timeout, allow using dilation --- akka-typed/src/test/scala/akka/typed/TypedSpec.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/akka-typed/src/test/scala/akka/typed/TypedSpec.scala b/akka-typed/src/test/scala/akka/typed/TypedSpec.scala index 280a2b069b..33785f1509 100644 --- a/akka-typed/src/test/scala/akka/typed/TypedSpec.scala +++ b/akka-typed/src/test/scala/akka/typed/TypedSpec.scala @@ -37,7 +37,8 @@ class TypedSpec(config: Config) extends Spec with Matchers with BeforeAndAfterAl } // TODO remove after basing on ScalaTest 3 with async support - def await[T](f: Future[T]): T = Await.result(f, 30.seconds) + import akka.testkit._ + def await[T](f: Future[T]): T = Await.result(f, 60.seconds.dilated(system.untyped)) val blackhole = await(system ? Create(Props(ScalaDSL.Full[Any] { case _ ⇒ ScalaDSL.Same }), "blackhole"))