Skip to content

Commit

Permalink
Test review of TestStoredFieldsFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Mar 10, 2024
1 parent ce0c5b8 commit 7ffae7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/Index/TestSnapshotDeletionPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public virtual void TestMissingCommits()

// open a new writer w/ KeepOnlyLastCommit policy, so it will delete "s1"
// commit.
(new IndexWriter(dir, GetConfig(Random, null))).Dispose();
new IndexWriter(dir, GetConfig(Random, null)).Dispose();

Assert.IsFalse(SlowFileExists(dir, s1.SegmentsFileName), "snapshotted commit should not exist");
dir.Dispose();
Expand Down
4 changes: 3 additions & 1 deletion src/Lucene.Net.Tests/Index/TestStoredFieldsFormat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ namespace Lucene.Net.Index
*/

using Codec = Lucene.Net.Codecs.Codec;
#pragma warning disable 612, 618
using Lucene3xCodec = Lucene.Net.Codecs.Lucene3x.Lucene3xCodec;
#pragma warning restore 612, 618

/// <summary>
/// Tests with the default randomized codec. Not really redundant with
Expand All @@ -47,4 +49,4 @@ public override void TestWriteReadMerge()
base.TestWriteReadMerge();
}
}
}
}

0 comments on commit 7ffae7f

Please sign in to comment.