Fix temp dir usage in ZkCLI test

This commit is contained in:
Uwe Schindler 2016-06-07 10:52:03 +02:00
parent 524f4fb963
commit d4ede8b2f7
1 changed files with 1 additions and 2 deletions

View File

@ -301,10 +301,9 @@ public class ZkCLITest extends SolrTestCaseJ4 {
@Test @Test
public void testGetFileNotExists() throws Exception { public void testGetFileNotExists() throws Exception {
File tmpDir = createTempDir().toFile();
String getNode = "/getFileNotExistsNode"; String getNode = "/getFileNotExistsNode";
File file = File.createTempFile("newfile", null, tmpDir); File file = createTempFile("newfile", null).toFile();
String[] args = new String[] {"-zkhost", zkServer.getZkAddress(), "-cmd", String[] args = new String[] {"-zkhost", zkServer.getZkAddress(), "-cmd",
"getfile", getNode, file.getAbsolutePath()}; "getfile", getNode, file.getAbsolutePath()};
try { try {