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:
Britt Park
2006-11-06 06:11:26 +00:00
parent 7fdf8130c8
commit 2c20af6d2b
6 changed files with 288 additions and 284 deletions

View File

@@ -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