mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-15 15:02:20 +00:00
An attempt to fix build failure in Bamboo which appeared by r120912.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@120953 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -413,9 +413,14 @@ public class MultiTDemoTest extends TestCase
|
|||||||
String tenantDomain = tenantService.getUserDomain(userName);
|
String tenantDomain = tenantService.getUserDomain(userName);
|
||||||
|
|
||||||
// Create groups for tenant
|
// Create groups for tenant
|
||||||
TenantUtil.runAsUserTenant(new TenantRunAsWork<Object>()
|
TenantUtil.runAsUserTenant(new TenantRunAsWork<Void>()
|
||||||
{
|
{
|
||||||
public Object doWork() throws Exception
|
public Void doWork() throws Exception
|
||||||
|
{
|
||||||
|
transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Void>()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public Void execute() throws Throwable
|
||||||
{
|
{
|
||||||
// find person
|
// find person
|
||||||
NodeRef personNodeRef = personService.getPerson(userName);
|
NodeRef personNodeRef = personService.getPerson(userName);
|
||||||
@@ -428,6 +433,9 @@ public class MultiTDemoTest extends TestCase
|
|||||||
permissionService.setPermission(homeSpaceRef, "GROUP_" + uniqueGroupNames[i], "Consumer", true);
|
permissionService.setPermission(homeSpaceRef, "GROUP_" + uniqueGroupNames[i], "Consumer", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}, false);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}, userName, tenantDomain);
|
}, userName, tenantDomain);
|
||||||
|
Reference in New Issue
Block a user