Scheduler shutdown timeout needs to be longer on slow machines. See #3027
This commit is contained in:
parent
814ba1c02a
commit
6621cda536
2 changed files with 8 additions and 1 deletions
|
|
@ -485,6 +485,8 @@ class LightArrayRevolverSchedulerSpec extends AkkaSpec(SchedulerSpec.testConfRev
|
|||
// println(s"clock=$time")
|
||||
time
|
||||
}
|
||||
override protected def getShutdownTimeout: FiniteDuration = super.getShutdownTimeout.dilated
|
||||
|
||||
override protected def waitNanos(ns: Long): Unit = {
|
||||
// println(s"waiting $ns")
|
||||
prb.ref ! ns
|
||||
|
|
|
|||
|
|
@ -212,6 +212,11 @@ class LightArrayRevolverScheduler(config: Config,
|
|||
*/
|
||||
protected def clock(): Long = System.nanoTime
|
||||
|
||||
/**
|
||||
* Overridable for tests
|
||||
*/
|
||||
protected def getShutdownTimeout: FiniteDuration = ShutdownTimeout
|
||||
|
||||
/**
|
||||
* Overridable for tests
|
||||
*/
|
||||
|
|
@ -276,7 +281,7 @@ class LightArrayRevolverScheduler(config: Config,
|
|||
}
|
||||
}
|
||||
|
||||
override def close(): Unit = Await.result(stop(), ShutdownTimeout) foreach execDirectly
|
||||
override def close(): Unit = Await.result(stop(), getShutdownTimeout) foreach execDirectly
|
||||
|
||||
override val maxFrequency: Double = 1.second / TickDuration
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue