lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [2/3] lucenenet git commit: initialize snapshots on each test run
Date Tue, 03 Mar 2015 17:41:12 GMT
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 <laimis@gmail.com>
Authored: Tue Mar 3 09:25:41 2015 -0500
Committer: Laimonas Simutis <laimis@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()


Mime
View raw message