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 8ca6951e5a42de0506686a378368686d3bae0667 Author: Shad Storhaug <[email protected]> AuthorDate: Sat Sep 26 21:15:22 2020 +0700 Lucene.Net.Tests.Index.TestDocumentsWriterStallControl::TestAccquireReleaseRace(): Reduced nightly probability by 50% on x86 to keep from timing out --- src/Lucene.Net.Tests/Index/TestDocumentsWriterStallControl.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Lucene.Net.Tests/Index/TestDocumentsWriterStallControl.cs b/src/Lucene.Net.Tests/Index/TestDocumentsWriterStallControl.cs index 6557c6f..6faf12d 100644 --- a/src/Lucene.Net.Tests/Index/TestDocumentsWriterStallControl.cs +++ b/src/Lucene.Net.Tests/Index/TestDocumentsWriterStallControl.cs @@ -146,12 +146,14 @@ namespace Lucene.Net.Index Start(threads); int iters = AtLeast(10000); - float checkPointProbability = TestNightly ? 0.5f : 0.1f; + //float checkPointProbability = TestNightly ? 0.5f : 0.1f; + // LUCENENET specific - reduced probabliltiy on x86 to prevent it from timing out. + float checkPointProbability = TestNightly ? (Lucene.Net.Util.Constants.RUNTIME_IS_64BIT ? 0.5f : 0.25f) : 0.1f; for (int i = 0; i < iters; i++) { if (checkPoint) { - Assert.IsTrue(sync.updateJoin.Wait(new TimeSpan(0, 0, 0, 10)), "timed out waiting for update threads - deadlock?"); + Assert.IsTrue(sync.updateJoin.Wait(TimeSpan.FromSeconds(10)), "timed out waiting for update threads - deadlock?"); if (exceptions.Count > 0) { foreach (Exception throwable in exceptions)
