Packages

implicit final class TestDuration extends AnyVal

Scala API. Scale timeouts (durations) during tests with the configured 'akka.actor.testkit.typed.timefactor'. Implicit class providing dilated method.

import scala.concurrent.duration._
import akka.actor.testkit.typed.scaladsl._
10.milliseconds.dilated

Uses the scaling factor from the TestTimeFactor in the TestKitSettings (in implicit scope).

Source
package.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestDuration
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TestDuration(duration: FiniteDuration)

Value Members

  1. def dilated(implicit settings: TestKitSettings): FiniteDuration
  2. val duration: FiniteDuration
  3. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any