From d4ede8b2f745726332c4a01bdf4b918ff05bebcd Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Tue, 7 Jun 2016 10:52:03 +0200 Subject: [PATCH] Fix temp dir usage in ZkCLI test --- solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java b/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java index d1521a0d399..4cadf87585e 100644 --- a/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java +++ b/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java @@ -301,10 +301,9 @@ public class ZkCLITest extends SolrTestCaseJ4 { @Test public void testGetFileNotExists() throws Exception { - File tmpDir = createTempDir().toFile(); String getNode = "/getFileNotExistsNode"; - File file = File.createTempFile("newfile", null, tmpDir); + File file = createTempFile("newfile", null).toFile(); String[] args = new String[] {"-zkhost", zkServer.getZkAddress(), "-cmd", "getfile", getNode, file.getAbsolutePath()}; try {