mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fixed the two tests that were failing in the continuous build. Disabled
four really long winded AVM performance and stress tests. This should speed up the continuous build on the wcm branch. The tests should probably be set up to run periodically with other long running exhaustive performance, and stress tests. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4293 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,33 +30,33 @@ public class SimultaneousLoadTest extends AVMServiceTestBase
|
||||
*/
|
||||
public void testSimultaneousLoad()
|
||||
{
|
||||
try
|
||||
{
|
||||
int n = 1;
|
||||
int m = 1;
|
||||
fReaper.setInactiveBaseSleep(60000);
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
fService.createDirectory("main:/", "d" + i);
|
||||
}
|
||||
fService.createSnapshot("main", null, null);
|
||||
Thread [] threads = new Thread[n];
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
Loader loader = new Loader("/Users/britt/stuff/" + i, "main:/d" + i, m);
|
||||
threads[i] = new Thread(loader);
|
||||
threads[i].start();
|
||||
}
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
threads[i].join();
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace(System.err);
|
||||
fail();
|
||||
}
|
||||
// try
|
||||
// {
|
||||
// int n = 1;
|
||||
// int m = 1;
|
||||
// fReaper.setInactiveBaseSleep(60000);
|
||||
// for (int i = 0; i < n; i++)
|
||||
// {
|
||||
// fService.createDirectory("main:/", "d" + i);
|
||||
// }
|
||||
// fService.createSnapshot("main", null, null);
|
||||
// Thread [] threads = new Thread[n];
|
||||
// for (int i = 0; i < n; i++)
|
||||
// {
|
||||
// Loader loader = new Loader("/Users/britt/stuff/" + i, "main:/d" + i, m);
|
||||
// threads[i] = new Thread(loader);
|
||||
// threads[i].start();
|
||||
// }
|
||||
// for (int i = 0; i < n; i++)
|
||||
// {
|
||||
// threads[i].join();
|
||||
// }
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// e.printStackTrace(System.err);
|
||||
// fail();
|
||||
// }
|
||||
}
|
||||
|
||||
private class Loader implements Runnable
|
||||
|
Reference in New Issue
Block a user