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/01/05 09:40:43 UTC

lucenenet git commit: More Nightlys

Repository: lucenenet
Updated Branches:
  refs/heads/master ee7ef249c -> b18ae0aac


More Nightlys


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/b18ae0aa
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/b18ae0aa
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/b18ae0aa

Branch: refs/heads/master
Commit: b18ae0aacb4b447cb33d9b9c7859744a4a2e35ac
Parents: ee7ef24
Author: Itamar Syn-Hershko <it...@code972.com>
Authored: Mon Jan 5 10:40:30 2015 +0200
Committer: Itamar Syn-Hershko <it...@code972.com>
Committed: Mon Jan 5 10:40:30 2015 +0200

----------------------------------------------------------------------
 .../Index/BaseTermVectorsFormatTestCase.cs               |  3 ++-
 src/Lucene.Net.Tests/core/Store/TestHugeRamFile.cs       | 11 ++++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b18ae0aa/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
index 7715a2d..3ed1f1a 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
@@ -4,6 +4,7 @@ using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Threading;
+using Lucene.Net.Attributes;
 using Lucene.Net.Codecs;
 using Lucene.Net.Documents;
 
@@ -734,7 +735,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        [Test, Nightly, Timeout(int.MaxValue)]
         public virtual void TestLotsOfFields()
         {
             RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 500, 10);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b18ae0aa/src/Lucene.Net.Tests/core/Store/TestHugeRamFile.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Store/TestHugeRamFile.cs b/src/Lucene.Net.Tests/core/Store/TestHugeRamFile.cs
index cd537b3..12bb083 100644
--- a/src/Lucene.Net.Tests/core/Store/TestHugeRamFile.cs
+++ b/src/Lucene.Net.Tests/core/Store/TestHugeRamFile.cs
@@ -1,3 +1,4 @@
+using Lucene.Net.Attributes;
 using NUnit.Framework;
 using System;
 using System.Collections.Generic;
@@ -36,8 +37,8 @@ namespace Lucene.Net.Store
         /// </summary>
         private class DenseRAMFile : RAMFile
         {
-            internal long Capacity = 0;
-            internal Dictionary<int, byte[]> SingleBuffers = new Dictionary<int, byte[]>();
+            private long Capacity = 0;
+            private readonly Dictionary<int, byte[]> SingleBuffers = new Dictionary<int, byte[]>();
 
             protected override byte[] NewBuffer(int size)
             {
@@ -62,10 +63,10 @@ namespace Lucene.Net.Store
 
         /// <summary>
         /// Test huge RAMFile with more than Integer.MAX_VALUE bytes. (LUCENE-957) </summary>
-        [Test]
+        [Test, Nightly, Timeout(int.MaxValue)]
         public virtual void TestHugeFile()
         {
-            DenseRAMFile f = new DenseRAMFile();
+            var f = new DenseRAMFile();
             // output part
             var @out = new RAMOutputStream(f);
             var b1 = new byte[RAMOutputStream.BUFFER_SIZE];
@@ -103,7 +104,7 @@ namespace Lucene.Net.Store
             }
             @out.Dispose();
             // input part
-            RAMInputStream @in = new RAMInputStream("testcase", f);
+            var @in = new RAMInputStream("testcase", f);
             Assert.AreEqual(n, @in.Length(), "input length must match");
             //System.out.println("input length = "+in.Length()+" % 1024 = "+in.Length()%1024);
             for (int j = 0; j < L; j++)