mirror of https://github.com/apache/lucene.git
SOLR-10272: Fix for test failure, while comparing directory contents of _default configsets
This commit is contained in:
parent
9f096200b2
commit
46bfd9cf7e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue