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:
Robert Muir 2014-10-04 14:55:07 +00:00
parent acf361084b
commit 7d1d815fde
1 changed files with 3 additions and 1 deletions

View File

@ -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();