You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2016/06/07 08:54:31 UTC

[2/2] lucene-solr:master: Fix temp dir usage in ZkCLI test

Fix temp dir usage in ZkCLI test


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/5c672e14
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/5c672e14
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/5c672e14

Branch: refs/heads/master
Commit: 5c672e14f80c5f8edc12dd28a1960bbdb73d9afa
Parents: 3c9e36b
Author: Uwe Schindler <us...@apache.org>
Authored: Tue Jun 7 10:52:03 2016 +0200
Committer: Uwe Schindler <us...@apache.org>
Committed: Tue Jun 7 10:52:03 2016 +0200

----------------------------------------------------------------------
 solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5c672e14/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java
----------------------------------------------------------------------
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 d1521a0..4cadf87 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 {