Akka测试包:timeFactor是什么时间? [英] Akka testkit: what is the timeFactor?

查看:70
本文介绍了Akka测试包:timeFactor是什么时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Akka TestProbe上有几种方法表明它们正确处理timeFactor。这是什么意思?

There are several methods on the Akka TestProbe that say they are "correctly treating the timeFactor." What does that mean?

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

例如,

推荐答案

使用设置akka.test.timefactor(默认为1),您可以增加或减少测试中的所有超时(就性能而言,在完全不同的计算机上运行测试时,这可能很有用)。这些方法将以下值用作最大持续时间:akka.test.single-expect-default(默认值为3秒)乘以上述akka.test.timefactor。

Using the setting akka.test.timefactor (1 by default) you may increase or decrease all timeouts in your tests (it may be useful when running tests on very different machines in terms of performance). These methods use as max duration the following value: akka.test.single-expect-default (3 seconds by default) multiplied by the akka.test.timefactor mentioned above.

这篇关于Akka测试包:timeFactor是什么时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆