lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject lucenenet git commit: Lucene.Net.Tests.Analysis.Common.Analysis.Th.TestThaiAnalyzer: Added Timeout attribute for TestRandomStrings() and TestRandomHugeStrings() because they don't always finish on .NET Framework 4.5.1
Date Thu, 28 Sep 2017 05:45:12 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 66302b4f1 -> b856f1eb0


Lucene.Net.Tests.Analysis.Common.Analysis.Th.TestThaiAnalyzer: Added Timeout attribute for
TestRandomStrings() and TestRandomHugeStrings() because they don't always finish on .NET Framework
4.5.1


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

Branch: refs/heads/master
Commit: b856f1eb051385992e4d1e4bc65c424e5e40913f
Parents: 66302b4
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Sep 28 12:44:18 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Sep 28 12:44:18 2017 +0700

----------------------------------------------------------------------
 .../Analysis/Th/TestThaiAnalyzer.cs                     | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b856f1eb/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiAnalyzer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiAnalyzer.cs b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiAnalyzer.cs
index bda1601..6231511 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiAnalyzer.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiAnalyzer.cs
@@ -131,7 +131,11 @@ namespace Lucene.Net.Analysis.Th
 
         /// <summary>
         /// blast some random strings through the analyzer </summary>
-        [Test]
+#if !NETSTANDARD
+         // LUCENENET: There is no Timeout on NUnit for .NET Core.		
+         [Timeout(120000)] // LUCENENET TODO: Sometimes doesn't finish on .NET 4.5.1		
+#endif
+        [Test, HasTimeout]
         public virtual void TestRandomStrings()
         {
 #if NETSTANDARD
@@ -143,7 +147,11 @@ namespace Lucene.Net.Analysis.Th
         /// <summary>
         /// blast some random large strings through the analyzer </summary>
         /// 
-        [Test]
+#if !NETSTANDARD
+         // LUCENENET: There is no Timeout on NUnit for .NET Core.		
+         [Timeout(120000)] // LUCENENET TODO: Sometimes doesn't finish on .NET 4.5.1		
+#endif
+        [Test, HasTimeout]
         public virtual void TestRandomHugeStrings()
         {
 #if NETSTANDARD


Mime
View raw message