提交 5c367227 编写于 作者: I ikedam

[JENKINS-21932] Make the slave used in the test offline explicitly.

上级 35dfc75c
......@@ -560,7 +560,10 @@ public class QueueTest extends HudsonTestCase {
public void testCancelInQueue() throws Exception
{
DumbSlave slave = createSlave();
// parepare an offline slave.
DumbSlave slave = createOnlineSlave();
assertFalse(slave.toComputer().isOffline());
slave.toComputer().disconnect(null).get();
assertTrue(slave.toComputer().isOffline());
FreeStyleProject p = createFreeStyleProject();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册