You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/03/12 08:09:00 UTC

camel git commit: Fixed tests

Repository: camel
Updated Branches:
  refs/heads/master b88d05f7e -> de1a57acb


Fixed tests


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

Branch: refs/heads/master
Commit: de1a57acb9fb6d884a1b1f4ed0c9dc3193fa5c1d
Parents: b88d05f
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Mar 12 08:08:51 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Mar 12 08:08:51 2016 +0100

----------------------------------------------------------------------
 .../netty4/http/NettyHttpBasicAuthConstraintMapperTest.java       | 3 +++
 .../http/NettyHttpBasicAuthCustomSecurityAuthenticatorTest.java   | 3 +++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/de1a57ac/components/camel-netty4-http/src/test/java/org/apache/camel/component/netty4/http/NettyHttpBasicAuthConstraintMapperTest.java
----------------------------------------------------------------------
diff --git a/components/camel-netty4-http/src/test/java/org/apache/camel/component/netty4/http/NettyHttpBasicAuthConstraintMapperTest.java b/components/camel-netty4-http/src/test/java/org/apache/camel/component/netty4/http/NettyHttpBasicAuthConstraintMapperTest.java
index 3468b91..7596dd7 100644
--- a/components/camel-netty4-http/src/test/java/org/apache/camel/component/netty4/http/NettyHttpBasicAuthConstraintMapperTest.java
+++ b/components/camel-netty4-http/src/test/java/org/apache/camel/component/netty4/http/NettyHttpBasicAuthConstraintMapperTest.java
@@ -71,6 +71,9 @@ public class NettyHttpBasicAuthConstraintMapperTest extends BaseNettyTest {
             assertEquals(401, cause.getStatusCode());
         }
 
+        // wait a little bit before next as the connection was closed when denied
+        Thread.sleep(500);
+
         // username:password is scott:secret
         String auth = "Basic c2NvdHQ6c2VjcmV0";
         out = template.requestBodyAndHeader("netty4-http:http://localhost:{{port}}/foo", "Hello World", "Authorization", auth, String.class);

http://git-wip-us.apache.org/repos/asf/camel/blob/de1a57ac/components/camel-netty4-http/src/test/java/org/apache/camel/component/netty4/http/NettyHttpBasicAuthCustomSecurityAuthenticatorTest.java
----------------------------------------------------------------------
diff --git a/components/camel-netty4-http/src/test/java/org/apache/camel/component/netty4/http/NettyHttpBasicAuthCustomSecurityAuthenticatorTest.java b/components/camel-netty4-http/src/test/java/org/apache/camel/component/netty4/http/NettyHttpBasicAuthCustomSecurityAuthenticatorTest.java
index 4375a51..8545ae0 100644
--- a/components/camel-netty4-http/src/test/java/org/apache/camel/component/netty4/http/NettyHttpBasicAuthCustomSecurityAuthenticatorTest.java
+++ b/components/camel-netty4-http/src/test/java/org/apache/camel/component/netty4/http/NettyHttpBasicAuthCustomSecurityAuthenticatorTest.java
@@ -43,6 +43,9 @@ public class NettyHttpBasicAuthCustomSecurityAuthenticatorTest extends BaseNetty
             assertEquals(401, cause.getStatusCode());
         }
 
+        // wait a little bit before next as the connection was closed when denied
+        Thread.sleep(500);
+
         getMockEndpoint("mock:input").expectedBodiesReceived("Hello World");
 
         // username:password is scott:secret