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 doc before each test run
Date Sun, 08 Feb 2015 12:47:38 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master b8ec924c0 -> af785e29c


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

Branch: refs/heads/master
Commit: af785e29c1cd41f6535fa417d8dba7c9d9c82fc9
Parents: b8ec924
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sun Feb 8 07:36:45 2015 -0500
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sun Feb 8 07:36:45 2015 -0500

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Index/TestSegmentTermDocs.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/af785e29/src/Lucene.Net.Tests/core/Index/TestSegmentTermDocs.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestSegmentTermDocs.cs b/src/Lucene.Net.Tests/core/Index/TestSegmentTermDocs.cs
index 301c64f..c266adc 100644
--- a/src/Lucene.Net.Tests/core/Index/TestSegmentTermDocs.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestSegmentTermDocs.cs
@@ -33,7 +33,7 @@ namespace Lucene.Net.Index
     [TestFixture]
     public class TestSegmentTermDocs : LuceneTestCase
     {
-        private Document TestDoc = new Document();
+        private Document TestDoc;
         private Directory Dir;
         private SegmentCommitInfo Info;
 
@@ -41,6 +41,7 @@ namespace Lucene.Net.Index
         public override void SetUp()
         {
             base.SetUp();
+            TestDoc = new Document();
             Dir = NewDirectory();
             DocHelper.SetupDoc(TestDoc);
             Info = DocHelper.WriteDoc(Random(), Dir, TestDoc);


Mime
View raw message