!tes #16075 Change default awaitAssert interval to 100 ms
This commit is contained in:
parent
fd498d34a5
commit
6a7133ea21
2 changed files with 9 additions and 1 deletions
|
|
@ -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,
|
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
|
please change them to reflect appropriate package name, such as
|
||||||
``<logger name='akka.cluster' level='warn' />`` or ``<logger name='akka.remote' level='error' />``
|
``<logger name='akka.cluster' level='warn' />`` or ``<logger name='akka.remote' level='error' />``
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -254,7 +254,7 @@ trait TestKitBase {
|
||||||
* Note that the timeout is scaled using Duration.dilated,
|
* Note that the timeout is scaled using Duration.dilated,
|
||||||
* which uses the configuration entry "akka.test.timefactor".
|
* 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 _max = remainingOrDilated(max)
|
||||||
val stop = now + _max
|
val stop = now + _max
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue