Comments out flakey AsynchronousSocketChannelTest.test_shutdown() test.
package libcore.java.nio.channels;
-import junit.framework.TestCase;
-import libcore.java.util.ResourceLeakageDetector;
-import org.junit.Rule;
-
-import java.io.IOException;
import java.net.BindException;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
@@ -36,12 +31,13 @@ import java.nio.channels.NotYetConnectedException;
import java.nio.channels.UnresolvedAddressException;
import java.nio.channels.UnsupportedAddressTypeException;
import java.nio.channels.spi.AsynchronousChannelProvider;
-import java.util.Arrays;
import java.util.Set;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
+import junit.framework.TestCase;
+
/* J2ObjC removed: unsupported
import libcore.junit.junit3.TestCaseWithRules;
import libcore.junit.util.ResourceLeakageDetector;
@@ -782,7 +778,7 @@ public class AsynchronousSocketChannelTest extends TestCase {
ss.close();
}
-
+ /* b/264665118
public void test_shutdown() throws Exception {
ServerSocket ss = new ServerSocket(0);
AsynchronousSocketChannel asc = AsynchronousSocketChannel.open();
@@ -839,6 +835,7 @@ public class AsynchronousSocketChannelTest extends TestCase {
sss.close();
ss.close();
}
+ */
public void test_options() throws Exception {
try (AsynchronousSocketChannel asc = AsynchronousSocketChannel.open()) {
