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 4622b3643e46587e8d6853b7b8166106c3c91139
Author: Shad Storhaug <[email protected]>
AuthorDate: Fri Sep 25 15:02:02 2020 +0700

    Lucene.Net.Tests.TestFramework.Analysis (TestLookaheadTokenFilter + 
TestMockAnalyzer): Reduced maximum nightly iterations by 50%
---
 .../Analysis/TestLookaheadTokenFilter.cs                       | 10 ++++++++--
 .../Analysis/TestMockAnalyzer.cs                               |  5 ++++-
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git 
a/src/Lucene.Net.Tests.TestFramework/Analysis/TestLookaheadTokenFilter.cs 
b/src/Lucene.Net.Tests.TestFramework/Analysis/TestLookaheadTokenFilter.cs
index f8cfdac..a7ae4aa 100644
--- a/src/Lucene.Net.Tests.TestFramework/Analysis/TestLookaheadTokenFilter.cs
+++ b/src/Lucene.Net.Tests.TestFramework/Analysis/TestLookaheadTokenFilter.cs
@@ -56,7 +56,10 @@ namespace Lucene.Net.Analysis
                 TokenStream output = new 
MockRandomLookaheadTokenFilter(random, tokenizer);
                 return new TokenStreamComponents(tokenizer, output);
             });
-            int maxLength = TestNightly ? 8192 : 1024;
+            //int maxLength = TestNightly ? 8192 : 1024;
+            // LUCENENET specific - reduced Nightly iterations from 8192 to 
4096
+            // to keep it under the 1 hour free limit of Azure DevOps
+            int maxLength = TestNightly ? 4096 : 1024;
             CheckRandomData(Random, a, 50 * RandomMultiplier, maxLength);
         }
 
@@ -87,7 +90,10 @@ namespace Lucene.Net.Analysis
                 TokenStream output = new 
NeverPeeksLookaheadTokenFilter(tokenizer);
                 return new TokenStreamComponents(tokenizer, output);
             });
-            int maxLength = TestNightly ? 8192 : 1024;
+            //int maxLength = TestNightly ? 8192 : 1024;
+            // LUCENENET specific - reduced Nightly iterations from 8192 to 
4096
+            // to keep it under the 1 hour free limit of Azure DevOps
+            int maxLength = TestNightly ? 4096 : 1024;
             CheckRandomData(Random, a, 50 * RandomMultiplier, maxLength);
         }
 
diff --git a/src/Lucene.Net.Tests.TestFramework/Analysis/TestMockAnalyzer.cs 
b/src/Lucene.Net.Tests.TestFramework/Analysis/TestMockAnalyzer.cs
index a61b47b..2662981 100644
--- a/src/Lucene.Net.Tests.TestFramework/Analysis/TestMockAnalyzer.cs
+++ b/src/Lucene.Net.Tests.TestFramework/Analysis/TestMockAnalyzer.cs
@@ -265,7 +265,10 @@ namespace Lucene.Net.Analysis
         [Test]
         public void TestRandomRegexps()
         {
-            int iters = TestNightly ? AtLeast(30) : AtLeast(1);
+            //int iters = TestNightly ? AtLeast(30) : AtLeast(1);
+            // LUCENENET specific - reduced Nightly iterations from 30 to 15
+            // to keep it under the 1 hour free limit of Azure DevOps
+            int iters = TestNightly ? AtLeast(15) : AtLeast(1);
             for (int i = 0; i < iters; i++)
             {
                 CharacterRunAutomaton dfa = new 
CharacterRunAutomaton(AutomatonTestUtil.RandomAutomaton(Random) /*, 
int.MaxValue*/);

Reply via email to