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 94d1b9d9ff151d13165bb6d18b19475c687a7e3d
Author: Shad Storhaug <[email protected]>
AuthorDate: Fri Sep 25 13:48:53 2020 +0700

    Lucene.Net.TestFramework.Util.LuceneTestCase: Reduced AtLeast() factor from 
2 to 1.5
---
 src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs 
b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
index 7eb4250..d32b79a 100644
--- a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
@@ -1378,7 +1378,10 @@ namespace Lucene.Net.Util
         /// </summary>
         public static int AtLeast(Random random, int i)
         {
-            int min = (TestNightly ? 2 * i : i) * RandomMultiplier;
+            //int min = (TestNightly ? 2 * i : i) * RandomMultiplier;
+            // LUCENENET specific - reduced nightly factor to lower the
+            // total test time in Nightly builds to get under the 1 hour time 
limit of Azure DevOps
+            int min = (TestNightly ? (int)(1.5 * i) : i) * RandomMultiplier;
             int max = min + (min / 2);
             return TestUtil.NextInt32(random, min, max);
         }

Reply via email to