[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout ...
Ron Sigal
ron_sigal at yahoo.com
Fri Aug 31 23:48:30 EDT 2007
User: rsigal
Date: 07/08/31 23:48:30
Modified: src/tests/org/jboss/test/remoting/transport/socket/timeout
Tag: remoting_2_x CallbackTimeoutTestCase.java
Log:
JBREM-800: Extended timeout to 2000 in testOnewayCallbackTimeout.
Revision Changes Path
No revision
No revision
1.1.2.5 +4 -4 JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/CallbackTimeoutTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CallbackTimeoutTestCase.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/CallbackTimeoutTestCase.java,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -b -r1.1.2.4 -r1.1.2.5
--- CallbackTimeoutTestCase.java 4 Feb 2007 22:31:35 -0000 1.1.2.4
+++ CallbackTimeoutTestCase.java 1 Sep 2007 03:48:30 -0000 1.1.2.5
@@ -51,7 +51,7 @@
* Unit test written for JBREM-690: http://jira.jboss.com/jira/browse/JBREM-690.
*
* @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
- * @version $Revision: 1.1.2.4 $
+ * @version $Revision: 1.1.2.5 $
* <p>
* Copyright Jan 10, 2007
* </p>
@@ -148,7 +148,7 @@
HashMap clientConfig = new HashMap();
clientConfig.put(InvokerLocator.FORCE_REMOTE, "true");
// clientConfig.put(SocketServerInvoker.CHECK_CONNECTION_KEY, "true");
- clientConfig.put(SocketClientInvoker.SO_TIMEOUT_FLAG, "1000");
+ clientConfig.put(SocketClientInvoker.SO_TIMEOUT_FLAG, "2000");
addExtraClientConfig(clientConfig);
Client client = new Client(locator, clientConfig);
client.connect();
@@ -160,7 +160,7 @@
log.info("invocation succeeded");
client.invoke(CALLBACK_ONEWAY);
- Thread.sleep(1000);
+ Thread.sleep(2000);
assertTrue(callbackHandler.receivedCallback);
log.info("received first callback");
@@ -170,7 +170,7 @@
callbackHandler.receivedCallback = false;
client.invoke(CALLBACK_ONEWAY);
log.info("sent second invocation");
- Thread.sleep(1000);
+ Thread.sleep(2000);
assertTrue(callbackHandler.receivedCallback);
log.info("received second callback");
More information about the jboss-cvs-commits
mailing list