lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject [2/2] lucene-solr:branch_6x: Fix temp dir usage in ZkCLI test
Date Tue, 07 Jun 2016 09:03:20 GMT
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/d4ede8b2
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d4ede8b2
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d4ede8b2

Branch: refs/heads/branch_6x
Commit: d4ede8b2f745726332c4a01bdf4b918ff05bebcd
Parents: 524f4fb
Author: Uwe Schindler <uschindler@apache.org>
Authored: Tue Jun 7 10:52:03 2016 +0200
Committer: Uwe Schindler <uschindler@apache.org>
Committed: Tue Jun 7 10:56:07 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/d4ede8b2/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 {


Mime
View raw message