This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


The following commit(s) were added to refs/heads/master by this push:
     new 9e91583  BUG: 
Lucene.Net.Tests.Analysis.Common.Analysis.Util.TestRollingCharBuffer::Test(): 
Reduced number of iterations with verbosity enabled to keep NUnit from crashing.
9e91583 is described below

commit 9e915832f19edaf94747fd4dee5cbb4203b7a808
Author: Shad Storhaug <[email protected]>
AuthorDate: Sat Feb 20 22:43:20 2021 +0700

    BUG: 
Lucene.Net.Tests.Analysis.Common.Analysis.Util.TestRollingCharBuffer::Test(): 
Reduced number of iterations with verbosity enabled to keep NUnit from crashing.
---
 .../Analysis/Util/TestRollingCharBuffer.cs                    | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git 
a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestRollingCharBuffer.cs 
b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestRollingCharBuffer.cs
index 807b368..04a24d0 100644
--- 
a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestRollingCharBuffer.cs
+++ 
b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestRollingCharBuffer.cs
@@ -28,7 +28,16 @@ namespace Lucene.Net.Analysis.Util
         [Test]
         public virtual void Test()
         {
-            var ITERS = AtLeast(1000);
+            int ITERS;
+
+            // LUCENENET specific: NUnit will crash with an OOM if we do the 
full test
+            // with verbosity enabled. So, decreasing the number of iterations 
by 1/2
+            // to keep it from crashing.
+            if (Verbose)
+                ITERS = AtLeast(500);
+            else
+                ITERS = AtLeast(1000);
+
 
             var buffer = new RollingCharBuffer();
 

Reply via email to