提交 eab5fa89 编写于 作者: C Christoph Kutzinski

don't wake up so often when waiting for Jenkins to finish - it make take away...

don't wake up so often when waiting for Jenkins to finish - it make take away to much time from the threads that are actually doing something
上级 39ba4e0c
......@@ -1309,13 +1309,13 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
int streak = 0;
while (true) {
Thread.sleep(10);
Thread.sleep(100);
if (isSomethingHappening())
streak=0;
else
streak++;
if (streak>5) // the system is quiet for a while
if (streak>2) // the system is quiet for a while
return;
if (System.currentTimeMillis()-startTime > timeout) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册