提交 be4be6b3 编写于 作者: K kutzi

added test that duration of the module builds is not longer than the duration...

added test that duration of the module builds is not longer than the duration of the moduleset build

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34058 71c3de6d-444a-0410-be80-ed276b4c234a
上级 9ec00e3a
......@@ -63,6 +63,13 @@ public class MavenMultiModuleTest extends HudsonTestCase {
assertEquals("moduleC should have Result.SUCCESS", Result.SUCCESS, modBuild.getResult());
}
}
long summedModuleDuration = 0;
for (MavenBuild modBuild : pBuild.getModuleLastBuilds().values()) {
summedModuleDuration += modBuild.getDuration();
}
assertTrue("duration of moduleset build should be greater-equal than sum of the module builds",
pBuild.getDuration() >= summedModuleDuration);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册