Author: clebert.suconic(a)jboss.com
Date: 2010-11-29 18:20:16 -0500 (Mon, 29 Nov 2010)
New Revision: 9944
Modified:
branches/2_2_0_HA_Improvements_preMerge/tests/src/org/hornetq/tests/integration/cluster/failover/MultipleBackupsFailoverTestBase.java
Log:
Changing test to fail instead of hang case messages are not received
Modified:
branches/2_2_0_HA_Improvements_preMerge/tests/src/org/hornetq/tests/integration/cluster/failover/MultipleBackupsFailoverTestBase.java
===================================================================
---
branches/2_2_0_HA_Improvements_preMerge/tests/src/org/hornetq/tests/integration/cluster/failover/MultipleBackupsFailoverTestBase.java 2010-11-29
23:13:07 UTC (rev 9943)
+++
branches/2_2_0_HA_Improvements_preMerge/tests/src/org/hornetq/tests/integration/cluster/failover/MultipleBackupsFailoverTestBase.java 2010-11-29
23:20:16 UTC (rev 9944)
@@ -145,7 +145,9 @@
for (int i = 0; i < numMessages; i++)
{
- ClientMessage message2 = consumer.receive();
+ ClientMessage message2 = consumer.receive(10000);
+
+ assertNotNull(message2);
Assert.assertEquals("aardvarks",
message2.getBodyBuffer().readString());