harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From litt...@apache.org
Subject svn commit: r1003744 - /harmony/enhanced/java/trunk/classlib/modules/nio/src/test/java/unix/org/apache/harmony/nio/tests/java/nio/channels/UnixSelectorTest.java
Date Sat, 02 Oct 2010 05:21:32 GMT
Author: littlee
Date: Sat Oct  2 05:21:32 2010
New Revision: 1003744

URL: http://svn.apache.org/viewvc?rev=1003744&view=rev
Log:
Fix of the testSelectorAcceptAndRead failure of org.apache.harmony.nio.tests.java.nio.channels.UnixSelectorTest.
The fix is to specify the hostname of a InetSocketAddress to avoid the connect missing.

Modified:
    harmony/enhanced/java/trunk/classlib/modules/nio/src/test/java/unix/org/apache/harmony/nio/tests/java/nio/channels/UnixSelectorTest.java

Modified: harmony/enhanced/java/trunk/classlib/modules/nio/src/test/java/unix/org/apache/harmony/nio/tests/java/nio/channels/UnixSelectorTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/nio/src/test/java/unix/org/apache/harmony/nio/tests/java/nio/channels/UnixSelectorTest.java?rev=1003744&r1=1003743&r2=1003744&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/nio/src/test/java/unix/org/apache/harmony/nio/tests/java/nio/channels/UnixSelectorTest.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/nio/src/test/java/unix/org/apache/harmony/nio/tests/java/nio/channels/UnixSelectorTest.java
Sat Oct  2 05:21:32 2010
@@ -94,7 +94,7 @@ public class UnixSelectorTest extends Te
         socketChannel.configureBlocking(false);
         Selector sel2 = Selector.open();
         socketChannel.register(sel2, SelectionKey.OP_WRITE);
-        boolean isConnected = socketChannel.connect(new InetSocketAddress(port));
+        boolean isConnected = socketChannel.connect(new InetSocketAddress("localhost", port));
         if (!isConnected) {
             socketChannel.finishConnect();
         }



Mime
View raw message