Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-21932] Make the slave used in the test offline explicitly.
  • Loading branch information
ikedam committed Mar 15, 2014
1 parent 35dfc75 commit 5c36722
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/src/test/java/hudson/model/QueueTest.java
Expand Up @@ -560,7 +560,10 @@ public String getDisplayName() {

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();
Expand Down

0 comments on commit 5c36722

Please sign in to comment.