Skip to content

Commit

Permalink
Test review of TestReaderClosed
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Mar 10, 2024
1 parent cd8e057 commit ab67dbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Lucene.Net.Tests/Index/TestReaderClosed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public override void SetUp()
{
base.SetUp();
dir = NewDirectory();
RandomIndexWriter writer = new RandomIndexWriter(Random, dir, NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random, MockTokenizer.KEYWORD, false)).SetMaxBufferedDocs(TestUtil.NextInt32(Random, 50, 1000)));
RandomIndexWriter writer = new RandomIndexWriter(Random, dir,
NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random, MockTokenizer.KEYWORD, false))
.SetMaxBufferedDocs(TestUtil.NextInt32(Random, 50, 1000)));

Document doc = new Document();
Field field = NewStringField("field", "", Field.Store.NO);
Expand Down Expand Up @@ -117,4 +119,4 @@ public override void TearDown()
base.TearDown();
}
}
}
}

0 comments on commit ab67dbb

Please sign in to comment.