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:master: Fix temp dir usage in ZkCLI test
Date Tue, 07 Jun 2016 08:54:31 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/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 <uschindler@apache.org>
Authored: Tue Jun 7 10:52:03 2016 +0200
Committer: Uwe Schindler <uschindler@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 {


Mime
View raw message