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 833042b8e8e929b9b6d404b14aa8ef6b1bd42ebe
Author: Shad Storhaug <[email protected]>
AuthorDate: Sat Sep 26 12:43:42 2020 +0700

    
Lucene.Net.TestFramework.Index.BaseStoredFieldsFormatTestCase::TestBigDocuments()
 Reduced size of big documents to keep test time under 1 hour
---
 .../Index/BaseStoredFieldsFormatTestCase.cs               | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git 
a/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs 
b/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
index 6e0dc32..daf859f 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
@@ -745,7 +745,10 @@ namespace Lucene.Net.Index
             using (Directory dir = new MockDirectoryWrapper(Random, new 
MMapDirectory(CreateTempDir("testBigDocuments"))))
             {
                 IndexWriterConfig iwConf = 
NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random));
-                
iwConf.SetMaxBufferedDocs(RandomInts.RandomInt32Between(Random, 2, 30));
+                
//iwConf.SetMaxBufferedDocs(RandomInts.RandomInt32Between(Random, 2, 30));
+                // LUCENENET specific - Reduced amount to keep the total
+                // Nightly test time under 1 hour
+                
iwConf.SetMaxBufferedDocs(RandomInts.RandomInt32Between(Random, 2, 15));
                 using (RandomIndexWriter iw = new RandomIndexWriter(Random, 
dir, iwConf))
                 {
 
@@ -767,13 +770,19 @@ namespace Lucene.Net.Index
                     onlyStored.IsIndexed = false;
 
                     Field smallField = new Field("fld", 
RandomByteArray(Random.Next(10), 256), onlyStored);
-                    int numFields = RandomInts.RandomInt32Between(Random, 
500000, 1000000);
+                    //int numFields = RandomInts.RandomInt32Between(Random, 
500000, 1000000);
+                    // LUCENENET specific - Reduced amount to keep the total
+                    // Nightly test time under 1 hour
+                    int numFields = RandomInts.RandomInt32Between(Random, 
250000, 500000);
                     for (int i = 0; i < numFields; ++i)
                     {
                         bigDoc1.Add(smallField);
                     }
 
-                    Field bigField = new Field("fld", 
RandomByteArray(RandomInts.RandomInt32Between(Random, 1000000, 5000000), 2), 
onlyStored);
+                    //Field bigField = new Field("fld", 
RandomByteArray(RandomInts.RandomInt32Between(Random, 1000000, 5000000), 2), 
onlyStored);
+                    // LUCENENET specific - Reduced amount to keep the total
+                    // Nightly test time under 1 hour
+                    Field bigField = new Field("fld", 
RandomByteArray(RandomInts.RandomInt32Between(Random, 500000, 2500000), 2), 
onlyStored);
                     bigDoc2.Add(bigField);
 
                     int numDocs = AtLeast(5);

Reply via email to