harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r618274 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java
Date Mon, 04 Feb 2008 13:26:06 GMT
Author: tellison
Date: Mon Feb  4 05:26:05 2008
New Revision: 618274

URL: http://svn.apache.org/viewvc?rev=618274&view=rev
Log:
Allow for unaccepted connection test to time out.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java?rev=618274&r1=618273&r2=618274&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java
Mon Feb  4 05:26:05 2008
@@ -490,6 +490,8 @@
             fail("No exception when connecting to address nobody listening on");
         } catch (ConnectException e) {
             // Expected
+        } catch (SocketTimeoutException e) {
+            // The other possibility is that the system timed us out.
         }
         theSocket.close();
 



Mime
View raw message