lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From is...@apache.org
Subject lucene-solr:master: SOLR-10272: Fix for test failure, while comparing directory contents of _default configsets
Date Thu, 29 Jun 2017 16:22:34 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 9f096200b -> 46bfd9cf7


SOLR-10272: Fix for test failure, while comparing directory contents of _default configsets


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

Branch: refs/heads/master
Commit: 46bfd9cf7e9da99e936fe986af88f4ab47d7fe33
Parents: 9f09620
Author: Ishan Chattopadhyaya <ishan@apache.org>
Authored: Thu Jun 29 21:52:19 2017 +0530
Committer: Ishan Chattopadhyaya <ishan@apache.org>
Committed: Thu Jun 29 21:52:19 2017 +0530

----------------------------------------------------------------------
 .../core/src/test/org/apache/solr/cloud/TestConfigSetsAPI.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/46bfd9cf/solr/core/src/test/org/apache/solr/cloud/TestConfigSetsAPI.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/TestConfigSetsAPI.java b/solr/core/src/test/org/apache/solr/cloud/TestConfigSetsAPI.java
index a9e5837..364108c 100644
--- a/solr/core/src/test/org/apache/solr/cloud/TestConfigSetsAPI.java
+++ b/solr/core/src/test/org/apache/solr/cloud/TestConfigSetsAPI.java
@@ -744,7 +744,11 @@ public class TestConfigSetsAPI extends SolrTestCaseJ4 {
         FileVisitResult result = super.preVisitDirectory(dir, attrs);
         Path relativePath = userDefault.toPath().relativize(dir);
         File testDefaultFile = testDefault.toPath().resolve(relativePath).toFile();
-        assertEquals("Mismatch in files", Arrays.toString(dir.toFile().list()), Arrays.toString(testDefaultFile.list()));
+        String[] listOne = dir.toFile().list();
+        String[] listTwo = testDefaultFile.list();
+        Arrays.sort(listOne);
+        Arrays.sort(listTwo);
+        assertEquals("Mismatch in files", Arrays.toString(listOne), Arrays.toString(listTwo));
         return result;
       }
       @Override


Mime
View raw message