lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject lucenenet git commit: initialize docs on each test run
Date Wed, 04 Mar 2015 08:12:50 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 82f9015c6 -> 02d2bef56


initialize docs 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/02d2bef5
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/02d2bef5
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/02d2bef5

Branch: refs/heads/master
Commit: 02d2bef56f9616c1a68164856fa3b6101cf51819
Parents: 82f9015
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Tue Mar 3 20:50:16 2015 -0500
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Tue Mar 3 20:50:16 2015 -0500

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Index/TestSegmentMerger.cs | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02d2bef5/src/Lucene.Net.Tests/core/Index/TestSegmentMerger.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestSegmentMerger.cs b/src/Lucene.Net.Tests/core/Index/TestSegmentMerger.cs
index b044411..7d4b01f 100644
--- a/src/Lucene.Net.Tests/core/Index/TestSegmentMerger.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestSegmentMerger.cs
@@ -43,19 +43,21 @@ namespace Lucene.Net.Index
         //First segment to be merged
         private Directory Merge1Dir;
 
-        private Document Doc1 = new Document();
-        private SegmentReader Reader1 = null;
+        private Document Doc1;
+        private SegmentReader Reader1;
 
         //Second Segment to be merged
         private Directory Merge2Dir;
 
-        private Document Doc2 = new Document();
-        private SegmentReader Reader2 = null;
+        private Document Doc2;
+        private SegmentReader Reader2;
 
         [SetUp]
         public override void SetUp()
         {
             base.SetUp();
+            this.Doc1 = new Document();
+            this.Doc2 = new Document();
             MergedDir = NewDirectory();
             Merge1Dir = NewDirectory();
             Merge2Dir = NewDirectory();


Mime
View raw message