Skip to content

Commit

Permalink
[TEST] Use NoMergePolicy rather than NoMergeScheduler in FreqTermsEnu…
Browse files Browse the repository at this point in the history
…mTests
  • Loading branch information
s1monw committed Apr 2, 2014
1 parent 4ff3e19 commit e189b3e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ public void setUp() throws Exception {

Directory dir = newDirectory();
IndexWriterConfig conf = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
conf.setMergeScheduler(NoMergeScheduler.INSTANCE); // we don't want to do any merges, so we won't expunge deletes
if (frequently()) {
// we don't want to do any merges, so we won't expunge deletes
conf.setMergePolicy(randomBoolean() ? NoMergePolicy.COMPOUND_FILES : NoMergePolicy.NO_COMPOUND_FILES);
}
iw = new IndexWriter(dir, conf);
terms = new String[scaledRandomIntBetween(10, 300)];
for (int i = 0; i < terms.length; i++) {
Expand Down

0 comments on commit e189b3e

Please sign in to comment.