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 70cd8b87a8e61a36c4d093d40f6c4dccff986e90 Author: Shad Storhaug <[email protected]> AuthorDate: Sat Aug 14 09:38:26 2021 +0700 Lucene.Net.Tests.Index.TestIndexWriter: Added Timeout and Deadlock attributes to TestThreadInterruptDeadlock() and TestTwoThreadsInterruptDeadlock(), since they sometimes hang --- src/Lucene.Net.Tests/Index/TestIndexWriter.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Lucene.Net.Tests/Index/TestIndexWriter.cs b/src/Lucene.Net.Tests/Index/TestIndexWriter.cs index 3fbfdb5..3057003 100644 --- a/src/Lucene.Net.Tests/Index/TestIndexWriter.cs +++ b/src/Lucene.Net.Tests/Index/TestIndexWriter.cs @@ -2,6 +2,7 @@ using J2N.Threading; using Lucene.Net.Analysis; using Lucene.Net.Analysis.TokenAttributes; +using Lucene.Net.Attributes; using Lucene.Net.Codecs; using Lucene.Net.Codecs.SimpleText; using Lucene.Net.Diagnostics; @@ -1429,6 +1430,7 @@ namespace Lucene.Net.Index [Test] [Slow] [AwaitsFix(BugUrl = "https://github.com/apache/lucenenet/issues/269")] // LUCENENET TODO: this test occasionally fails + [Deadlock][Timeout(900000)] // LUCENENET TODO: this test occasionally deadlocks public virtual void TestThreadInterruptDeadlock() { IndexerThreadInterrupt t = new IndexerThreadInterrupt(this); @@ -1470,6 +1472,7 @@ namespace Lucene.Net.Index [Test] [Slow] [AwaitsFix(BugUrl = "https://github.com/apache/lucenenet/issues/269")] // LUCENENET TODO: this test occasionally fails + [Deadlock][Timeout(900000)] // LUCENENET TODO: this test occasionally deadlocks public virtual void TestTwoThreadsInterruptDeadlock() { IndexerThreadInterrupt t1 = new IndexerThreadInterrupt(this);
