diff --git a/akka-docs/rst/project/migration-guide-2.3.x-2.4.x.rst b/akka-docs/rst/project/migration-guide-2.3.x-2.4.x.rst index 19f45cfd78..f88000d4bd 100644 --- a/akka-docs/rst/project/migration-guide-2.3.x-2.4.x.rst +++ b/akka-docs/rst/project/migration-guide-2.3.x-2.4.x.rst @@ -140,3 +140,11 @@ in order to allow package level log level definitions and ease source code looku In case you used specific "simple" logger name based rules in your ``logback.xml`` configurations, please change them to reflect appropriate package name, such as ```` or ```` + +Default interval for TestKit.awaitAssert changed to 100 ms +========================================================== + +Default check interval changed from 800 ms to 100 ms. You can define the interval explicitly if you need a +longer interval. + + diff --git a/akka-testkit/src/main/scala/akka/testkit/TestKit.scala b/akka-testkit/src/main/scala/akka/testkit/TestKit.scala index 4820f54ded..3663145474 100644 --- a/akka-testkit/src/main/scala/akka/testkit/TestKit.scala +++ b/akka-testkit/src/main/scala/akka/testkit/TestKit.scala @@ -254,7 +254,7 @@ trait TestKitBase { * Note that the timeout is scaled using Duration.dilated, * which uses the configuration entry "akka.test.timefactor". */ - def awaitAssert(a: ⇒ Any, max: Duration = Duration.Undefined, interval: Duration = 800.millis) { + def awaitAssert(a: ⇒ Any, max: Duration = Duration.Undefined, interval: Duration = 100.millis) { val _max = remainingOrDilated(max) val stop = now + _max