cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject cxf git commit: a test to very the receiveTimeout < 1000ms also take effect
Date Sat, 14 Jan 2017 01:46:26 GMT
Repository: cxf
Updated Branches:
  refs/heads/master cca4421a6 -> ae83629e6


a test to very the receiveTimeout < 1000ms also take effect


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/ae83629e
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/ae83629e
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/ae83629e

Branch: refs/heads/master
Commit: ae83629e6291538e72d300fb35d7f6df7cf064a1
Parents: cca4421
Author: Freeman Fang <freeman.fang@gmail.com>
Authored: Sat Jan 14 09:46:16 2017 +0800
Committer: Freeman Fang <freeman.fang@gmail.com>
Committed: Sat Jan 14 09:46:16 2017 +0800

----------------------------------------------------------------------
 .../src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java    | 2 +-
 .../java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ae83629e/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java
----------------------------------------------------------------------
diff --git a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java
index e37429f..f21729b 100644
--- a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java
+++ b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java
@@ -295,7 +295,7 @@ public class BookStore {
     public Response patchBook(Book book) {
         if (book.getName().equals("Timeout")) {
             try {
-                Thread.sleep(4000);
+                Thread.sleep(2000);
             } catch (InterruptedException e) {
             }
             return Response.ok(book).build();

http://git-wip-us.apache.org/repos/asf/cxf/blob/ae83629e/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
----------------------------------------------------------------------
diff --git a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
index 738991c..7659479 100644
--- a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
+++ b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
@@ -114,8 +114,8 @@ public class JAXRSAsyncClientTest extends AbstractBusClientServerTestBase
{
         ClientConfiguration clientConfig = WebClient.getConfig(wc);
         clientConfig.getRequestContext().put("use.async.http.conduit", true);
         HTTPClientPolicy clientPolicy = clientConfig.getHttpConduit().getClient();
-        clientPolicy.setReceiveTimeout(2000);
-        clientPolicy.setConnectionTimeout(2000);
+        clientPolicy.setReceiveTimeout(500);
+        clientPolicy.setConnectionTimeout(500);
         try {
             Book book = wc.invoke("PATCH", new Book("Timeout", 123L), Book.class);
             fail("should throw an exception due to timeout");


Mime
View raw message