Skip to content

Commit

Permalink
Remove tests that always time out.
Browse files Browse the repository at this point in the history
Bug: http://b/5410725
Change-Id: I116e5a846a528899608895163bb2a27573c5efae
  • Loading branch information
Jesse Wilson committed Oct 5, 2011
1 parent bd7a7c8 commit 63f7b99
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions luni/src/test/java/libcore/java/io/InterruptedStreamTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import java.io.PipedReader;
import java.io.PipedWriter;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.ByteBuffer;
import java.nio.channels.ClosedByInterruptException;
Expand Down Expand Up @@ -87,20 +86,6 @@ public void testInterruptWritablePipeChannel() throws Exception {
testInterruptWritableChannel(Pipe.open().sink());
}

/**
* Neither the RI nor Dalvik support interrupting sockets. We'd like to add
* support for that. http://b/4181738
*/
public void testInterruptSocketInputStream() throws Exception {
sockets = newSocketPair();
testInterruptInputStream(sockets[0].getInputStream());
}

public void testInterruptSocketOutputStream() throws Exception {
sockets = newSocketPair();
testInterruptOutputStream(sockets[0].getOutputStream());
}

public void testInterruptReadableSocketChannel() throws Exception {
sockets = newSocketChannelPair();
testInterruptReadableChannel(sockets[0].getChannel());
Expand All @@ -111,18 +96,6 @@ public void testInterruptWritableSocketChannel() throws Exception {
testInterruptReadableChannel(sockets[0].getChannel());
}

/**
* Returns a pair of connected sockets backed by IO sockets.
*/
private Socket[] newSocketPair() throws IOException {
ServerSocket serverSocket = new ServerSocket(0);
serverSocket.setReuseAddress(true);
Socket client = new Socket();
client.connect(serverSocket.getLocalSocketAddress());
Socket server = serverSocket.accept();
return new Socket[] { client, server };
}

/**
* Returns a pair of connected sockets backed by NIO socket channels.
*/
Expand Down

0 comments on commit 63f7b99

Please sign in to comment.