lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [01/15] lucenenet git commit: Lucene.Net.Tests.Search.TestSearcherManager.TestSearcherManager_Mem(): Added timeout of 1 minute
Date Fri, 24 Mar 2017 02:02:33 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/api-work d3621f0c3 -> f78116a4f


Lucene.Net.Tests.Search.TestSearcherManager.TestSearcherManager_Mem(): Added timeout of 1
minute


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

Branch: refs/heads/api-work
Commit: 6d55c691988a3486386a0c62a6c233f852f75fd0
Parents: d3621f0
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Mar 23 22:27:57 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Mar 23 22:27:57 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests/Search/TestSearcherManager.cs | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6d55c691/src/Lucene.Net.Tests/Search/TestSearcherManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Search/TestSearcherManager.cs b/src/Lucene.Net.Tests/Search/TestSearcherManager.cs
index 8f96f39..2f53d74 100644
--- a/src/Lucene.Net.Tests/Search/TestSearcherManager.cs
+++ b/src/Lucene.Net.Tests/Search/TestSearcherManager.cs
@@ -1,3 +1,8 @@
+using NUnit.Framework;
+using Lucene.Net.Attributes;
+using Lucene.Net.Index;
+using Lucene.Net.Randomized.Generators;
+using Lucene.Net.Support;
 using System;
 using System.Collections.Generic;
 using System.Threading;
@@ -5,10 +10,6 @@ using System.Threading.Tasks;
 
 namespace Lucene.Net.Search
 {
-    using Index;
-    using Lucene.Net.Randomized.Generators;
-    using Lucene.Net.Support;
-    using NUnit.Framework;
     using Directory = Lucene.Net.Store.Directory;
     using DirectoryReader = Lucene.Net.Index.DirectoryReader;
     using Document = Documents.Document;
@@ -48,7 +49,11 @@ namespace Lucene.Net.Search
 
         private SearcherLifetimeManager.IPruner pruner;
 
-        [Test]
+#if !NETSTANDARD
+        // LUCENENET: There is no Timeout on NUnit for .NET Core.
+        [Timeout(60000)]
+#endif
+        [Test, HasTimeout]
         public virtual void TestSearcherManager_Mem()
         {
             pruner = new SearcherLifetimeManager.PruneByAge(TEST_NIGHTLY ? TestUtil.NextInt(Random(),
1, 20) : 1);


Mime
View raw message