lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [08/16] lucenenet git commit: Lucene.Net.Tests: Increased timouts of some of the tests that may fail if they are running as a batch with other tests
Date Sat, 11 Mar 2017 05:53:01 GMT
Lucene.Net.Tests: Increased timouts of some of the tests that may fail if they are running
as a batch with other tests


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

Branch: refs/heads/api-work
Commit: 229d026ea26ab919d01ffb124978006772bfe184
Parents: 34450d6
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Mar 10 19:34:06 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Mar 10 19:34:06 2017 +0700

----------------------------------------------------------------------
 .../Search/TestControlledRealTimeReopenThread.cs        |  7 ++++++-
 src/Lucene.Net.Tests/Search/TestNumericRangeQuery64.cs  | 12 ++++++++----
 .../Util/Packed/TestEliasFanoSequence.cs                |  2 +-
 src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs      |  2 +-
 4 files changed, 16 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/229d026e/src/Lucene.Net.Tests/Search/TestControlledRealTimeReopenThread.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Search/TestControlledRealTimeReopenThread.cs b/src/Lucene.Net.Tests/Search/TestControlledRealTimeReopenThread.cs
index 7e6d24e..8fac262 100644
--- a/src/Lucene.Net.Tests/Search/TestControlledRealTimeReopenThread.cs
+++ b/src/Lucene.Net.Tests/Search/TestControlledRealTimeReopenThread.cs
@@ -4,6 +4,7 @@ using System.Linq;
 using System.Text;
 using System.Threading;
 using System.Threading.Tasks;
+using Lucene.Net.Attributes;
 using Lucene.Net.Randomized.Generators;
 using Lucene.Net.Support;
 using NUnit.Framework;
@@ -374,7 +375,11 @@ namespace Lucene.Net.Search
         /*
          * LUCENE-3528 - NRTManager hangs in certain situations 
          */
-        [Test]
+#if !NETSTANDARD
+        // LUCENENET: There is no Timeout on NUnit for .NET Core.
+        [Timeout(60000)]
+#endif
+        [Test, HasTimeout]
         public virtual void TestThreadStarvationNoDeleteNRTReader()
         {
             IndexWriterConfig conf = NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random()));

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/229d026e/src/Lucene.Net.Tests/Search/TestNumericRangeQuery64.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Search/TestNumericRangeQuery64.cs b/src/Lucene.Net.Tests/Search/TestNumericRangeQuery64.cs
index ffa2557..84af54e 100644
--- a/src/Lucene.Net.Tests/Search/TestNumericRangeQuery64.cs
+++ b/src/Lucene.Net.Tests/Search/TestNumericRangeQuery64.cs
@@ -1,11 +1,11 @@
+using Lucene.Net.Attributes;
+using Lucene.Net.Documents;
+using NUnit.Framework;
 using System;
 using System.Diagnostics;
-using Lucene.Net.Documents;
 
 namespace Lucene.Net.Search
 {
-    using Lucene.Net.Index;
-    using NUnit.Framework;
     using AtomicReaderContext = Lucene.Net.Index.AtomicReaderContext;
     using BytesRef = Lucene.Net.Util.BytesRef;
     using Directory = Lucene.Net.Store.Directory;
@@ -709,7 +709,11 @@ namespace Lucene.Net.Search
             }
         }
 
-        [Test]
+#if !NETSTANDARD
+        // LUCENENET: There is no Timeout on NUnit for .NET Core.
+        [Timeout(60000)]
+#endif
+        [Test, HasTimeout]
         public virtual void TestSorting_8bit()
         {
             TestSorting(8);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/229d026e/src/Lucene.Net.Tests/Util/Packed/TestEliasFanoSequence.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Util/Packed/TestEliasFanoSequence.cs b/src/Lucene.Net.Tests/Util/Packed/TestEliasFanoSequence.cs
index 29b72b3..c699a4c 100644
--- a/src/Lucene.Net.Tests/Util/Packed/TestEliasFanoSequence.cs
+++ b/src/Lucene.Net.Tests/Util/Packed/TestEliasFanoSequence.cs
@@ -306,7 +306,7 @@ namespace Lucene.Net.Util.Packed
 
 #if !NETSTANDARD
         // LUCENENET: There is no Timeout on NUnit for .NET Core.
-        [Timeout(50000)]
+        [Timeout(120000)]
 #endif
         [Test, LongRunningTest, HasTimeout, LuceneNetSpecific]
         public virtual void TestMonotoneSequencesLonger()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/229d026e/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs b/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs
index e428586..becd580 100644
--- a/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs
+++ b/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs
@@ -1125,7 +1125,7 @@ namespace Lucene.Net.Util.Packed
 
 #if !NETSTANDARD
         // LUCENENET: There is no Timeout on NUnit for .NET Core.
-        [Timeout(80000)]
+        [Timeout(120000)]
 #endif
         [Test, HasTimeout]
         public virtual void TestAppendingLongBuffer()


Mime
View raw message