cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Minimizing a test timeout to get it run faster
Date Fri, 13 Jan 2017 11:54:01 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 17c7ebc89 -> 0d4441e70


Minimizing a test timeout to get it run faster


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

Branch: refs/heads/master
Commit: 0d4441e7035c57c1e4c67d04395f617baa24b8d9
Parents: 17c7ebc
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri Jan 13 11:53:43 2017 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri Jan 13 11:53:43 2017 +0000

----------------------------------------------------------------------
 .../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/0d4441e7/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 45d2a19..e37429f 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(25000);
+                Thread.sleep(4000);
             } catch (InterruptedException e) {
             }
             return Response.ok(book).build();

http://git-wip-us.apache.org/repos/asf/cxf/blob/0d4441e7/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 8e0baac..738991c 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(15000);
-        clientPolicy.setConnectionTimeout(15000);
+        clientPolicy.setReceiveTimeout(2000);
+        clientPolicy.setConnectionTimeout(2000);
         try {
             Book book = wc.invoke("PATCH", new Book("Timeout", 123L), Book.class);
             fail("should throw an exception due to timeout");


Mime
View raw message