cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anim...@apache.org
Subject [1/7] git commit: updated refs/heads/4.3 to 91ec548
Date Mon, 03 Feb 2014 00:24:33 GMT
Updated Branches:
  refs/heads/4.3 a42a34568 -> 91ec548fc


Fix mock socket client/server test.

Normally a server will bind to 0.0.0.0, which is not an
address that a client can specify to connect to.
127.0.0.1 or ::1 will do.
(cherry picked from commit 1e9f066df2fd4f6b27e9866eefd01611d7184e45)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>


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

Branch: refs/heads/4.3
Commit: eece5100f0926e3df049cb70dea074f547d9464d
Parents: a42a345
Author: Hiroaki KAWAI <kawai@stratosphere.co.jp>
Authored: Thu Jan 30 20:14:55 2014 +0900
Committer: Animesh Chaturvedi <animesh@apache.org>
Committed: Sun Feb 2 16:02:35 2014 -0800

----------------------------------------------------------------------
 .../rdpconsole/src/test/java/rdpclient/MockServerTest.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/eece5100/services/console-proxy-rdp/rdpconsole/src/test/java/rdpclient/MockServerTest.java
----------------------------------------------------------------------
diff --git a/services/console-proxy-rdp/rdpconsole/src/test/java/rdpclient/MockServerTest.java
b/services/console-proxy-rdp/rdpconsole/src/test/java/rdpclient/MockServerTest.java
index a40cdb8..17bc4bd 100755
--- a/services/console-proxy-rdp/rdpconsole/src/test/java/rdpclient/MockServerTest.java
+++ b/services/console-proxy-rdp/rdpconsole/src/test/java/rdpclient/MockServerTest.java
@@ -58,7 +58,7 @@ public class MockServerTest extends TestCase {
 
         Socket socket = SocketFactory.getDefault().createSocket();
         try {
-            socket.connect(server.getAddress());
+            socket.connect(new InetSocketAddress("127.0.0.1", server.getAddress().getPort()));
 
             InputStream is = socket.getInputStream();
             OutputStream os = socket.getOutputStream();
@@ -127,7 +127,7 @@ public class MockServerTest extends TestCase {
 
         Socket socket = SocketFactory.getDefault().createSocket();
         try {
-            InetSocketAddress address = server.getAddress();
+            InetSocketAddress address = new InetSocketAddress("127.0.0.1", server.getAddress().getPort());
             socket.connect(address);
 
             // Send hello data over plain connection


Mime
View raw message