提交 0c06e69c 编写于 作者: J Jesse Glick

Do not set a 10-sec timeout in the build(FreeStyleProject) method.

Generally the environment is responsible for imposing a general timeout on tests.
And this timeout makes debugging more difficult.
上级 2ef5a7cd
......@@ -34,7 +34,6 @@ import hudson.model.Run;
import hudson.tasks.ArtifactArchiverTest.CreateArtifact;
import java.util.Arrays;
import java.util.Collections;
import java.util.concurrent.TimeUnit;
import org.jvnet.hudson.test.Bug;
import org.jvnet.hudson.test.FailureBuilder;
import org.jvnet.hudson.test.HudsonTestCase;
......@@ -127,7 +126,7 @@ public class LogRotatorTest extends HudsonTestCase {
static Result build(FreeStyleProject project) throws Exception {
return project.scheduleBuild2(0).get(10, TimeUnit.SECONDS).getResult();
return project.scheduleBuild2(0).get().getResult();
}
private static int numberOf(Run<?,?> run) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册