From 60b82f23c20c3ce18dad74ea6c3d37233aae4fd7 Mon Sep 17 00:00:00 2001 From: "Marc R. Hoffmann" Date: Thu, 11 May 2017 08:14:05 +0200 Subject: Remove obsolete test code Starting from commit 54e674c0ab96b93668e6c0b036e7773e3ed7ff6d the ExecutionDataReader does not read an exec file header any more in the constructor. Therefore initialization of TcpConnection will not block. --- .../agent/rt/internal/output/TcpConnectionTest.java | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'org.jacoco.agent.rt.test/src/org') diff --git a/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/TcpConnectionTest.java b/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/TcpConnectionTest.java index 3108a992..34b53881 100644 --- a/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/TcpConnectionTest.java +++ b/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/TcpConnectionTest.java @@ -100,26 +100,6 @@ public class TcpConnectionTest extends ExecutorTestBase { f.get(); } - /** - * Remote endpoint is closed before even a valid header was send. - */ - public void testRemoteCloseWithoutHeader() throws Throwable { - final TcpConnection con = new TcpConnection(mockConnection.getSocketA(), - data); - - final Future f = executor.submit(new Callable() { - public Void call() throws Exception { - con.init(); - return null; - } - }); - - assertBlocks(f); - - mockConnection.getSocketB().close(); - f.get(); - } - /** * Local socket is closed while waiting for commands. * -- cgit v1.2.3