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

This commit is contained in:
Ishan Chattopadhyaya 2017-06-29 21:52:19 +05:30
parent 9f096200b2
commit 46bfd9cf7e
1 changed files with 5 additions and 1 deletions

View File

@ -744,7 +744,11 @@ public class TestConfigSetsAPI extends SolrTestCaseJ4 {
FileVisitResult result = super.preVisitDirectory(dir, attrs); FileVisitResult result = super.preVisitDirectory(dir, attrs);
Path relativePath = userDefault.toPath().relativize(dir); Path relativePath = userDefault.toPath().relativize(dir);
File testDefaultFile = testDefault.toPath().resolve(relativePath).toFile(); 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; return result;
} }
@Override @Override