You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2013/05/15 20:05:05 UTC
svn commit: r1482983 -
/lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java
Author: markrmiller
Date: Wed May 15 18:05:05 2013
New Revision: 1482983
URL: http://svn.apache.org/r1482983
Log:
fix test for windows
Modified:
lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java
Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java?rev=1482983&r1=1482982&r2=1482983&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java Wed May 15 18:05:05 2013
@@ -194,7 +194,7 @@ public class ZkCLITest extends SolrTestC
// filter out all directories starting with . (e.g. .svn)
Collection<File> sourceFiles = FileUtils.listFiles(sourceConfDir, TrueFileFilter.INSTANCE, new RegexFileFilter("[^\\.].*"));
for (File sourceFile :sourceFiles){
- int indexOfRelativePath = sourceFile.getAbsolutePath().lastIndexOf("collection1/conf");
+ int indexOfRelativePath = sourceFile.getAbsolutePath().lastIndexOf("collection1" + File.separator + "conf");
String relativePathofFile = sourceFile.getAbsolutePath().substring(indexOfRelativePath + 17, sourceFile.getAbsolutePath().length());
File downloadedFile = new File(confDir,relativePathofFile);
assertTrue(downloadedFile.getAbsolutePath() + " does not exist source:" + sourceFile.getAbsolutePath(), downloadedFile.exists());