Author: richard.opalka(a)jboss.com
Date: 2009-01-22 03:37:32 -0500 (Thu, 22 Jan 2009)
New Revision: 9087
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.java
Log:
extending timeout from 1s to 5s to prevent hudson regressions
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.java 2009-01-21
18:53:57 UTC (rev 9086)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.java 2009-01-22
08:37:32 UTC (rev 9087)
@@ -78,7 +78,8 @@
{
try
{
- String retStr = (String) response.get(1000, TimeUnit.MILLISECONDS);
+ System.out.println("AsyncHandler.handleResponse() method
called");
+ String retStr = (String) response.get(5000, TimeUnit.MILLISECONDS);
assertEquals("Hello", retStr);
asyncHandlerCalled = true;
}
@@ -91,7 +92,10 @@
Endpoint port = createProxy();
Future future = port.echoAsync("Hello", handler);
- future.get(1000, TimeUnit.MILLISECONDS);
+ long start = System.currentTimeMillis();
+ future.get(5000, TimeUnit.MILLISECONDS);
+ long end = System.currentTimeMillis();
+ System.out.println("Time spent in future.get() was " + (end - start) +
"milliseconds");
if (handlerException != null)
throw handlerException;
Show replies by date