We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0999c06 commit 277704cCopy full SHA for 277704c
client/rest-high-level/src/test/java/org/elasticsearch/client/ESRestHighLevelClientTestCase.java
@@ -29,6 +29,7 @@
29
import org.elasticsearch.common.util.concurrent.ThreadContext;
30
import org.elasticsearch.common.xcontent.XContentBuilder;
31
import org.elasticsearch.common.xcontent.XContentType;
32
+import org.elasticsearch.core.internal.io.IOUtils;
33
import org.elasticsearch.ingest.Pipeline;
34
import org.elasticsearch.test.rest.ESRestTestCase;
35
import org.junit.AfterClass;
@@ -54,7 +55,7 @@ public void initHighLevelClient() throws IOException {
54
55
56
@AfterClass
57
public static void cleanupClient() throws IOException {
- restHighLevelClient.close();
58
+ IOUtils.close(restHighLevelClient);
59
restHighLevelClient = null;
60
}
61
0 commit comments