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

commit b822beb0b9c2491d2b5f800532f5e41ae3ce436e
Author: Shad Storhaug <[email protected]>
AuthorDate: Sat Sep 26 17:05:10 2020 +0700

    Lucene.Net.Tests.Index.TestFlushByRamOrCountsPolicy::TestFlushByRam(): 
Increased ramBuffer size to offset the fact that LuceneTestCase.AtLeast() was 
decreased.
---
 src/Lucene.Net.Tests/Index/TestFlushByRamOrCountsPolicy.cs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Lucene.Net.Tests/Index/TestFlushByRamOrCountsPolicy.cs 
b/src/Lucene.Net.Tests/Index/TestFlushByRamOrCountsPolicy.cs
index 4f47926..e22513d 100644
--- a/src/Lucene.Net.Tests/Index/TestFlushByRamOrCountsPolicy.cs
+++ b/src/Lucene.Net.Tests/Index/TestFlushByRamOrCountsPolicy.cs
@@ -66,7 +66,10 @@ namespace Lucene.Net.Index
             // LUCENENET specific - disable the test if asserts are not enabled
             AssumeTrue("This test requires asserts to be enabled.", 
Debugging.AssertsEnabled);
 
-            double ramBuffer = (TestNightly ? 1 : 10) + AtLeast(2) + 
Random.NextDouble();
+            //double ramBuffer = (TestNightly ? 1 : 10) + AtLeast(2) + 
Random.NextDouble();
+            // LUCENENET specific - increased size of ramBuffer to reduce the 
amount of
+            // time required and offset AtLeast(2).
+            double ramBuffer = (TestNightly ? 2 : 10) + AtLeast(2) + 
Random.NextDouble();
             RunFlushByRam(1 + Random.Next(TestNightly ? 5 : 1), ramBuffer, 
false);
         }
 

Reply via email to