Skip to content

Commit 2723a52

Browse files
author
Christoph Büscher
authored
Simplify TransportMultiSearchActionTests (#48523)
The test doesn't seem to need the threadpool that is created and destroyed in setup and teardown any longer, so it can be removed.
1 parent c1c7fa5 commit 2723a52

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

server/src/test/java/org/elasticsearch/action/search/TransportMultiSearchActionTests.java

-19
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,9 @@
3939
import org.elasticsearch.tasks.Task;
4040
import org.elasticsearch.tasks.TaskManager;
4141
import org.elasticsearch.test.ESTestCase;
42-
import org.elasticsearch.threadpool.TestThreadPool;
4342
import org.elasticsearch.threadpool.ThreadPool;
4443
import org.elasticsearch.transport.Transport;
4544
import org.elasticsearch.transport.TransportService;
46-
import org.junit.After;
47-
import org.junit.Before;
4845

4946
import java.util.Arrays;
5047
import java.util.Collections;
@@ -63,22 +60,6 @@
6360

6461
public class TransportMultiSearchActionTests extends ESTestCase {
6562

66-
protected ThreadPool threadPool;
67-
68-
@Before
69-
@Override
70-
public void setUp() throws Exception {
71-
super.setUp();
72-
threadPool = new TestThreadPool(getTestName());
73-
}
74-
75-
@After
76-
@Override
77-
public void tearDown() throws Exception {
78-
threadPool.shutdown();
79-
super.tearDown();
80-
}
81-
8263
public void testParentTaskId() throws Exception {
8364
// Initialize dependencies of TransportMultiSearchAction
8465
Settings settings = Settings.builder()

0 commit comments

Comments
 (0)