commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1595703 - /commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/TestConnectTimeout.java
Date Sun, 18 May 2014 23:11:01 GMT
Author: sebb
Date: Sun May 18 23:11:01 2014
New Revision: 1595703

URL: http://svn.apache.org/r1595703
Log:
Don't "borrow" external hosts for testing

Modified:
    commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/TestConnectTimeout.java

Modified: commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/TestConnectTimeout.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/TestConnectTimeout.java?rev=1595703&r1=1595702&r2=1595703&view=diff
==============================================================================
--- commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/TestConnectTimeout.java
(original)
+++ commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/TestConnectTimeout.java
Sun May 18 23:11:01 2014
@@ -36,7 +36,8 @@ public class TestConnectTimeout extends 
 
         try {
             // Connect to a valid host on a bogus port
-            client.connect("ftp.microsoft.com", 1234);
+        	// TODO use a local server if possible
+            client.connect("www.apache.org", 1234);
             assertTrue("Expecting SocketTimeoutException", false);
         }
         catch (SocketTimeoutException se) {



Mime
View raw message