=typ #17137 increase await timeout, allow using dilation
This commit is contained in:
parent
4e8daf19ea
commit
dd828fed1f
1 changed files with 2 additions and 1 deletions
|
|
@ -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"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue