Author: jmesnil
Date: 2009-11-20 10:00:41 -0500 (Fri, 20 Nov 2009)
New Revision: 8341
Modified:
trunk/tests/src/org/hornetq/tests/integration/cluster/bridge/BridgeWithDiscoveryGroupStartTest.java
Log:
increased receive() timeout value
* 500ms could be not enough in case of a full GC... set it to 2000ms instead
Modified:
trunk/tests/src/org/hornetq/tests/integration/cluster/bridge/BridgeWithDiscoveryGroupStartTest.java
===================================================================
---
trunk/tests/src/org/hornetq/tests/integration/cluster/bridge/BridgeWithDiscoveryGroupStartTest.java 2009-11-20
14:43:39 UTC (rev 8340)
+++
trunk/tests/src/org/hornetq/tests/integration/cluster/bridge/BridgeWithDiscoveryGroupStartTest.java 2009-11-20
15:00:41 UTC (rev 8341)
@@ -50,6 +50,8 @@
public class BridgeWithDiscoveryGroupStartTest extends ServiceTestBase
{
+ private static final int TIMEOUT = 2000;
+
protected boolean isNetty()
{
return false;
@@ -165,7 +167,7 @@
for (int i = 0; i < numMessages; i++)
{
- ClientMessage message = consumer1.receive(500);
+ ClientMessage message = consumer1.receive(TIMEOUT);
assertNotNull(message);
@@ -195,7 +197,7 @@
for (int i = 0; i < numMessages; i++)
{
- ClientMessage message = consumer1.receive(1000);
+ ClientMessage message = consumer1.receive(TIMEOUT);
assertNotNull(message);
Show replies by date