You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2015/03/03 18:41:12 UTC
[2/3] lucenenet git commit: initialize snapshots on each test run
initialize snapshots on each test run
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/01bac7d7
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/01bac7d7
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/01bac7d7
Branch: refs/heads/master
Commit: 01bac7d79f3f1abf436c4c39ad85b301882938d1
Parents: 9e1e797
Author: Laimonas Simutis <la...@gmail.com>
Authored: Tue Mar 3 09:25:41 2015 -0500
Committer: Laimonas Simutis <la...@gmail.com>
Committed: Tue Mar 3 09:25:41 2015 -0500
----------------------------------------------------------------------
.../core/Index/TestSnapshotDeletionPolicy.cs | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/01bac7d7/src/Lucene.Net.Tests/core/Index/TestSnapshotDeletionPolicy.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestSnapshotDeletionPolicy.cs b/src/Lucene.Net.Tests/core/Index/TestSnapshotDeletionPolicy.cs
index d84f55d..8e75696 100644
--- a/src/Lucene.Net.Tests/core/Index/TestSnapshotDeletionPolicy.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestSnapshotDeletionPolicy.cs
@@ -71,8 +71,6 @@ namespace Lucene.Net.Index
}
}
- protected internal IList<IndexCommit> Snapshots = new List<IndexCommit>();
-
protected internal virtual void PrepareIndexAndSnapshots(SnapshotDeletionPolicy sdp, IndexWriter writer, int numSnapshots)
{
for (int i = 0; i < numSnapshots; i++)
@@ -110,6 +108,15 @@ namespace Lucene.Net.Index
}
}
+ protected internal IList<IndexCommit> Snapshots;
+
+ public override void SetUp()
+ {
+ base.SetUp();
+
+ this.Snapshots = new List<IndexCommit>();
+ }
+
[Ignore]
[Test]
public virtual void TestSnapshotDeletionPolicy_Mem()