Skip to content

Commit

Permalink
Increase a timeout value for graceful actor stop in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
izeigerman committed Aug 10, 2018
1 parent 600a610 commit 911ff9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion akkeeper/src/test/scala/akkeeper/ActorTestUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ package akkeeper

import akka.actor.ActorRef
import akka.pattern.gracefulStop
import scala.concurrent.duration._

trait ActorTestUtils extends AwaitMixin {

protected val gracefulStopTimeout: FiniteDuration = 6 seconds

protected def gracefulActorStop(actor: ActorRef): Unit = {
await(gracefulStop(actor, awaitTimeout))
await(gracefulStop(actor, gracefulStopTimeout))
}
}

0 comments on commit 911ff9f

Please sign in to comment.