提交 d57209f7 编写于 作者: K kohsuke

exposed additional local variable to assist debugging

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24493 71c3de6d-444a-0410-be80-ed276b4c234a
上级 6fa3acf8
......@@ -48,7 +48,6 @@ import hudson.model.BuildListener
import hudson.util.OneShotEvent
import java.util.concurrent.Future
import java.util.concurrent.TimeUnit
import hudson.model.FreeStyleProject
import java.util.concurrent.TimeoutException
/**
......@@ -224,7 +223,8 @@ public class MatrixProjectTest extends HudsonTestCase {
// MatrixProject scheduled after the quiet down shouldn't start
try {
p.scheduleBuild2(0).get(3,TimeUnit.SECONDS)
Future g = p.scheduleBuild2(0)
g.get(3,TimeUnit.SECONDS)
fail()
} catch (TimeoutException e) {
// expected
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册