You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/05/15 15:24:30 UTC

[3/3] git commit: CAMEL-7314 Fixed the test error of camel-websocket

CAMEL-7314 Fixed the test error of camel-websocket


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

Branch: refs/heads/master
Commit: 415b82e6ffe8f5ee62f52799c2ad042076d4cfde
Parents: 62a2eb6
Author: Willem Jiang <wi...@gmail.com>
Authored: Thu May 15 16:03:20 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Thu May 15 21:22:33 2014 +0800

----------------------------------------------------------------------
 .../component/websocket/WebsocketProducerRouteExampleTest.java   | 2 +-
 .../camel/component/websocket/WebsocketTwoRoutesExampleTest.java | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/415b82e6/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketProducerRouteExampleTest.java
----------------------------------------------------------------------
diff --git a/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketProducerRouteExampleTest.java b/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketProducerRouteExampleTest.java
index 0ef41cb..ae2f2d7 100644
--- a/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketProducerRouteExampleTest.java
+++ b/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketProducerRouteExampleTest.java
@@ -53,7 +53,7 @@ public class WebsocketProducerRouteExampleTest extends CamelTestSupport {
     public void testWSHttpCall() throws Exception {
         AsyncHttpClient c = new AsyncHttpClient();
 
-        WebSocket websocket = c.prepareGet("ws://127.0.0.1:" + port + "/shop").execute(
+        WebSocket websocket = c.prepareGet("ws://localhost:" + port + "/shop").execute(
             new WebSocketUpgradeHandler.Builder()
                 .addWebSocketListener(new WebSocketTextListener() {
                     @Override

http://git-wip-us.apache.org/repos/asf/camel/blob/415b82e6/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketTwoRoutesExampleTest.java
----------------------------------------------------------------------
diff --git a/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketTwoRoutesExampleTest.java b/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketTwoRoutesExampleTest.java
index 64bc0f5..a3d850a 100644
--- a/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketTwoRoutesExampleTest.java
+++ b/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketTwoRoutesExampleTest.java
@@ -51,7 +51,7 @@ public class WebsocketTwoRoutesExampleTest extends CamelTestSupport {
 
         AsyncHttpClient c = new AsyncHttpClient();
 
-        WebSocket websocket = c.prepareGet("ws://127.0.0.1:" + port + "/bar").execute(
+        WebSocket websocket = c.prepareGet("ws://localhost:" + port + "/bar").execute(
             new WebSocketUpgradeHandler.Builder()
                 .addWebSocketListener(new WebSocketTextListener() {
                     @Override
@@ -94,7 +94,7 @@ public class WebsocketTwoRoutesExampleTest extends CamelTestSupport {
 
         c = new AsyncHttpClient();
 
-        websocket = c.prepareGet("ws://127.0.0.1:" + port + "/pub").execute(
+        websocket = c.prepareGet("ws://localhost:" + port + "/pub").execute(
                 new WebSocketUpgradeHandler.Builder()
                         .addWebSocketListener(new WebSocketTextListener() {
                             @Override