diff --git a/src/Lucene.Net.Tests/Index/TestIndexWriter.cs b/src/Lucene.Net.Tests/Index/TestIndexWriter.cs index 737f5e9cf0..a482874c78 100644 --- a/src/Lucene.Net.Tests/Index/TestIndexWriter.cs +++ b/src/Lucene.Net.Tests/Index/TestIndexWriter.cs @@ -2560,7 +2560,7 @@ public virtual void TestCommitWithUserDataOnly() private Dictionary GetLiveCommitData(IndexWriter writer) { Dictionary data = new Dictionary(); - // LUCENENET TODO: in a post-4.8 port, this should use LiveCommitData + // LUCENENET UPGRADE TODO: in a post-4.8 port, this should use LiveCommitData foreach (var ent in writer.CommitData) { data.Put(ent.Key, ent.Value); @@ -2594,8 +2594,8 @@ public virtual void TestGetCommitData() public void TestGetCommitDataFromOldSnapshot() { Directory dir = NewDirectory(); - IndexWriter writer = new IndexWriter(dir, NewSnapshotIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random))); - // LUCENENET TODO: in a post-4.8 port, this should use SetLiveCommitData + IndexWriter writer = new IndexWriter(dir, NewSnapshotIndexWriterConfig(TEST_VERSION_CURRENT, null)); + // LUCENENET UPGRADE TODO: in a post-4.8 port, this should use SetLiveCommitData writer.SetCommitData(new Dictionary { { "key", "value" }, @@ -2608,8 +2608,8 @@ public void TestGetCommitDataFromOldSnapshot() writer.Dispose(); // Modify the commit data and commit on close so the most recent commit data is different - writer = new IndexWriter(dir, NewSnapshotIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random))); - // LUCENENET TODO: in a post-4.8 port, this should use SetLiveCommitData + writer = new IndexWriter(dir, NewSnapshotIndexWriterConfig(TEST_VERSION_CURRENT, null)); + // LUCENENET UPGRADE TODO: in a post-4.8 port, this should use SetLiveCommitData writer.SetCommitData(new Dictionary() { { "key", "value2" }, @@ -2623,7 +2623,7 @@ public void TestGetCommitDataFromOldSnapshot() writer = new IndexWriter( dir, - NewSnapshotIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random)) + NewSnapshotIndexWriterConfig(TEST_VERSION_CURRENT, null) .SetOpenMode(OpenMode.APPEND) .SetIndexCommit(indexCommit)); assertEquals("value", GetLiveCommitData(writer)["key"]);