[jboss-cvs] JBoss Messaging SVN: r6022 - trunk/tests/src/org/jboss/messaging/tests/stress/remote.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Mar 6 10:18:04 EST 2009
Author: clebert.suconic at jboss.com
Date: 2009-03-06 10:18:04 -0500 (Fri, 06 Mar 2009)
New Revision: 6022
Modified:
trunk/tests/src/org/jboss/messaging/tests/stress/remote/PingStressTest.java
Log:
enblng tst
Modified: trunk/tests/src/org/jboss/messaging/tests/stress/remote/PingStressTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/stress/remote/PingStressTest.java 2009-03-06 14:57:35 UTC (rev 6021)
+++ trunk/tests/src/org/jboss/messaging/tests/stress/remote/PingStressTest.java 2009-03-06 15:18:04 UTC (rev 6022)
@@ -93,24 +93,30 @@
@Override
protected void tearDown() throws Exception
{
- messagingService.stop();
+ if (messagingService != null && messagingService.isStarted())
+ {
+ messagingService.stop();
+ messagingService = null;
+ }
super.tearDown();
}
protected int getNumberOfIterations()
{
- System.out.println("Change PingStressTest::getNumberOfIterations to enable this test");
- return 0;
+ return 20;
}
public void testMultiThreadOpenAndCloses() throws Exception
{
for (int i = 0; i < getNumberOfIterations(); i++)
{
+ if (i > 0)
+ {
+ tearDown();
+ setUp();
+ }
System.out.println("Run " + i);
internalTest();
- tearDown();
- setUp();
}
}
More information about the jboss-cvs-commits
mailing list