Author: clebert.suconic(a)jboss.com
Date: 2011-02-17 00:02:54 -0500 (Thu, 17 Feb 2011)
New Revision: 10226
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/client/HornetQCrashTest.java
Log:
Fixing test
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/client/HornetQCrashTest.java
===================================================================
---
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/client/HornetQCrashTest.java 2011-02-17
03:55:32 UTC (rev 10225)
+++
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/client/HornetQCrashTest.java 2011-02-17
05:02:54 UTC (rev 10226)
@@ -103,8 +103,20 @@
{
HornetQCrashTest.log.info("Stopping server");
- // Stop the server when a message arrives, to simulate a crash
- server.stop();
+ new Thread()
+ {
+ public void run()
+ {
+ try
+ {
+ server.stop();
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+ }.start();
}
catch (Exception e)
{
Show replies by date