Acca testkit: what is timeFactor?

There are several methods in Akka TestProbe that say they "correctly handle timeFactor". What does it mean?

http://doc.akka.io/api/akka/2.0/akka/testkit/TestProbe.html

For example, see the second version of expectMsg.

+4
source share
1 answer

Using the akka.test.timefactor setting (default is 1), you can increase or decrease all timeouts in your tests (this can be useful when performing tests on a wide variety of machines in terms of performance). These methods use the following value as maximum duration: akka.test.single-expect-default (3 seconds by default), multiplied by the akka.test.timefactor mentioned above.

+9

Source: https://habr.com/ru/post/1531615/


All Articles