Fixed test failure.

Slightly tuned version of another test.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4709 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-01-03 01:35:03 +00:00
parent f9a5191c6b
commit 60eadcf3ff
3 changed files with 4 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ public class AVMCrawlTestP extends AVMServiceTestBase
{ {
int n = 4; // Number of Threads. int n = 4; // Number of Threads.
int m = 12; // How many multiples of content to start with. int m = 12; // How many multiples of content to start with.
long runTime = 7200000; // 6 hours. long runTime = 36000000; // 6 hours.
fService.purgeStore("main"); fService.purgeStore("main");
BulkLoader loader = new BulkLoader(); BulkLoader loader = new BulkLoader();
loader.setAvmService(fService); loader.setAvmService(fService);

View File

@@ -854,7 +854,7 @@ public class AVMNodeService extends AbstractNodeServiceImpl implements NodeServi
{ {
throw new InvalidNodeRefException("Read only store.", parentRef); throw new InvalidNodeRefException("Read only store.", parentRef);
} }
Pair<Integer, String> childVersionPath = AVMNodeConverter.ToAVMVersionPath(parentRef); Pair<Integer, String> childVersionPath = AVMNodeConverter.ToAVMVersionPath(childRef);
if (childVersionPath.getFirst() >= 0) if (childVersionPath.getFirst() >= 0)
{ {
throw new InvalidNodeRefException("Read only store.", childRef); throw new InvalidNodeRefException("Read only store.", childRef);

View File

@@ -19,6 +19,7 @@ package org.alfresco.repo.avm.actions;
import java.util.List; import java.util.List;
import org.alfresco.config.JNDIConstants;
import org.alfresco.repo.action.executer.ActionExecuterAbstractBase; import org.alfresco.repo.action.executer.ActionExecuterAbstractBase;
import org.alfresco.repo.avm.AVMDAOs; import org.alfresco.repo.avm.AVMDAOs;
import org.alfresco.repo.avm.AVMNodeConverter; import org.alfresco.repo.avm.AVMNodeConverter;
@@ -138,7 +139,7 @@ public class SimpleAVMSubmitAction extends ActionExecuterAbstractBase
// Cleanup by flattening the source relative to the destination. // Cleanup by flattening the source relative to the destination.
// This is an ugliness to prevent database write misorderings in flatten. // This is an ugliness to prevent database write misorderings in flatten.
AVMDAOs.Instance().fAVMNodeDAO.flush(); AVMDAOs.Instance().fAVMNodeDAO.flush();
fAVMSyncService.flatten(storePath[0] + ":/appBase", websiteName + "-staging:/appBase"); fAVMSyncService.flatten(storePath[0] + ":/" + JNDIConstants.DIR_DEFAULT_WWW, websiteName + "-staging:/" + JNDIConstants.DIR_DEFAULT_WWW);
} }
/** /**