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 69520d34b01976b875922f8c334ccd1788e1d9f0
Author: Shad Storhaug <[email protected]>
AuthorDate: Thu Sep 24 23:47:07 2020 +0700

    Lucene.Net.TestFramework.Util.LuceneTestCase::Rarely(): Reduced nightly 
instances by 50%
---
 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 b2dadb6..7eb4250 100644
--- a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
@@ -1396,7 +1396,10 @@ namespace Lucene.Net.Util
         /// </summary>
         public static bool Rarely(Random random)
         {
-            int p = TestNightly ? 10 : 1;
+            //int p = TestNightly ? 10 : 1;
+            // LUCENENET specific - reduced nightly instance by 1/2 to lower 
the
+            // total test time in Nightly builds to get under the 1 hour time 
limit of Azure DevOps
+            int p = TestNightly ? 5 : 1;
             p += (int)(p * Math.Log(RandomMultiplier));
             int min = 100 - Math.Min(p, 50); // never more than 50
             return random.Next(100) >= min;

Reply via email to