mirror of https://github.com/apache/lucene.git
LUCENE-5969: fix test to not rely upon filename count
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5969@1629401 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
acf361084b
commit
7d1d815fde
|
@ -78,7 +78,9 @@ public class TestIndexSplitter extends LuceneTestCase {
|
|||
Path destDir2 = createTempDir(LuceneTestCase.getTestClass().getSimpleName());
|
||||
IndexSplitter.main(new String[] {dir.toAbsolutePath().toString(), destDir2.toAbsolutePath().toString(), splitSegName});
|
||||
Directory fsDirDest2 = newFSDirectory(destDir2);
|
||||
assertEquals(4, fsDirDest2.listAll().length);
|
||||
SegmentInfos sis = new SegmentInfos();
|
||||
sis.read(fsDirDest2);
|
||||
assertEquals(1, sis.size());
|
||||
r = DirectoryReader.open(fsDirDest2);
|
||||
assertEquals(50, r.maxDoc());
|
||||
r.close();
|
||||
|
|
Loading…
Reference in New Issue