mirror of https://github.com/apache/lucene.git
Fix temp dir usage in ZkCLI test
This commit is contained in:
parent
524f4fb963
commit
d4ede8b2f7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue