Merge pull request #436 from andreisavu/1.4.x-only-root-domain

Do not fail test if we have only the ROOT domain
This commit is contained in:
Adrian Cole 2012-03-14 08:06:09 -07:00
commit 652a638157
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public class DomainDomainClientLiveTest extends BaseCloudStackClientLiveTest {
assertEquals(root.getLevel(), 0);
assertEquals(root.getParentDomainId(), 0);
assertNull(root.getParentDomainName());
if (allDomains.size() > 0) {
if (allDomains.size() > 1) {
assertTrue(root.hasChild());
}