master is not accessible via getComputer

This commit is contained in:
Adrian Cole 2012-04-24 11:51:20 -07:00
parent 96b9e8c8b0
commit 559a37ceff
1 changed files with 4 additions and 2 deletions

View File

@ -39,10 +39,12 @@ public class ComputerClientLiveTest extends BaseJenkinsClientLiveTest {
assertNotNull(view.getDisplayName()); assertNotNull(view.getDisplayName());
for (Computer computerFromView : view.getComputers()) { for (Computer computerFromView : view.getComputers()) {
assertNotNull(computerFromView.getDisplayName()); assertNotNull(computerFromView.getDisplayName());
if (!"master".equals(computerFromView.getDisplayName())) {
Computer computerFromGetRequest = getClient().getComputer(computerFromView.getDisplayName()); Computer computerFromGetRequest = getClient().getComputer(computerFromView.getDisplayName());
assertEquals(computerFromGetRequest, computerFromView); assertEquals(computerFromGetRequest, computerFromView);
} }
} }
}
private ComputerClient getClient() { private ComputerClient getClient() {
return context.getApi().getComputerClient(); return context.getApi().getComputerClient();