lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [01/20] lucenenet git commit: Lucene.Net.Tests.Index.TestIndexWriterWithThreads.TestCloseWithThreads(): Set timeout back to its original value of 200ms. Apparently the optimizations that have been done have fixed the slowness that was causing the test to
Date Sun, 02 Apr 2017 07:06:01 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/api-work b8d797eaa -> ec120c4ba


Lucene.Net.Tests.Index.TestIndexWriterWithThreads.TestCloseWithThreads(): Set timeout back
to its original value of 200ms. Apparently the optimizations that have been done have fixed
the slowness that was causing the test to fail with its original setting.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/1944d9ec
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/1944d9ec
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/1944d9ec

Branch: refs/heads/api-work
Commit: 1944d9eca68c914de3d8c3121084d1ca5a68535f
Parents: b8d797e
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Apr 2 09:09:20 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Apr 2 09:09:20 2017 +0700

----------------------------------------------------------------------
 .../Index/TestIndexWriterWithThreads.cs                 | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1944d9ec/src/Lucene.Net.Tests/Index/TestIndexWriterWithThreads.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Index/TestIndexWriterWithThreads.cs b/src/Lucene.Net.Tests/Index/TestIndexWriterWithThreads.cs
index 6fbf8e6..f7946f1 100644
--- a/src/Lucene.Net.Tests/Index/TestIndexWriterWithThreads.cs
+++ b/src/Lucene.Net.Tests/Index/TestIndexWriterWithThreads.cs
@@ -242,13 +242,11 @@ namespace Lucene.Net.Index
                 {
                     threads[i] = new IndexerThread(writer, false, NewField)
 
-                        // LUCENENET specific - ConcurrentMergeScheduler 
-                        // seems to take too long for this test to index a single document
-                        // so, increasing the time from 200 to 300 ms
-
-                        // LUCENENET TODO: Find out what is taking so friggin long here -
-                        // probably boils down to using LINQ for something that needs to
be fast
-                        { TimeToRunInMilliseconds = 300 };
+                        // LUCENENET NOTE - ConcurrentMergeScheduler 
+                        // used to take too long for this test to index a single document
+                        // so, increased the time from 200 to 300 ms. 
+                        // But it has now been restored to 200 ms like Lucene.
+                        { TimeToRunInMilliseconds = 200 };
                 }
 
                 for (int i = 0; i < NUM_THREADS; i++)


Mime
View raw message