lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [25/50] [abbrv] lucenenet git commit: Lucene.Net.Tests.Index: Marked several tests with LongRunningTestAttribute because they are running slow (more than 1 min) on .NET Core 1.0
Date Sat, 09 Sep 2017 00:31:43 GMT
Lucene.Net.Tests.Index: Marked several tests with LongRunningTestAttribute because they are
running slow (more than 1 min) on .NET Core 1.0


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

Branch: refs/heads/master
Commit: 75ee027fcc08782779ef01bad18d3de49ceb5a17
Parents: fa94509
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Sep 8 00:27:51 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Sep 8 00:27:51 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests/Index/TestIndexWriterExceptions.cs  | 11 ++++++-----
 src/Lucene.Net.Tests/Index/TestIndexWriterMerging.cs     |  2 +-
 src/Lucene.Net.Tests/Index/TestIndexWriterReader.cs      |  2 +-
 src/Lucene.Net.Tests/Index/TestIndexWriterWithThreads.cs |  7 ++++---
 src/Lucene.Net.Tests/Index/TestMixedDocValuesUpdates.cs  |  2 +-
 5 files changed, 13 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/75ee027f/src/Lucene.Net.Tests/Index/TestIndexWriterExceptions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Index/TestIndexWriterExceptions.cs b/src/Lucene.Net.Tests/Index/TestIndexWriterExceptions.cs
index cb0681a..78854cc 100644
--- a/src/Lucene.Net.Tests/Index/TestIndexWriterExceptions.cs
+++ b/src/Lucene.Net.Tests/Index/TestIndexWriterExceptions.cs
@@ -1,4 +1,5 @@
 using Lucene.Net.Analysis;
+using Lucene.Net.Attributes;
 using Lucene.Net.Documents;
 using Lucene.Net.Randomized.Generators;
 using Lucene.Net.Support;
@@ -1102,7 +1103,7 @@ namespace Lucene.Net.Index
         }
 
         // LUCENE-1044: test exception during sync
-        [Test]
+        [Test, LongRunningTest] // LUCENENET TODO: Can this test be optimized to run faster
on .NET Core 1.0?
         public virtual void TestExceptionDuringSync([ValueSource(typeof(ConcurrentMergeSchedulerFactories),
"Values")]Func<IConcurrentMergeScheduler> newScheduler)
         {
             MockDirectoryWrapper dir = NewMockDirectory();
@@ -1185,7 +1186,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        [Test, LongRunningTest] // LUCENENET TODO: Can this test be optimized to run faster
on .NET Core 1.0?
         public virtual void TestExceptionsDuringCommit()
         {
             FailOnlyInCommit[] failures = new FailOnlyInCommit[] { new FailOnlyInCommit(false,
FailOnlyInCommit.PREPARE_STAGE), new FailOnlyInCommit(true, FailOnlyInCommit.PREPARE_STAGE),
new FailOnlyInCommit(false, FailOnlyInCommit.FINISH_STAGE) };
@@ -1607,7 +1608,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        [Test, LongRunningTest] // LUCENENET TODO: Can this test be optimized to run faster
on .NET Core 1.0?
         public virtual void TestTermVectorExceptions()
         {
             FailOnTermVectors[] failures = new FailOnTermVectors[] { new FailOnTermVectors(FailOnTermVectors.AFTER_INIT_STAGE),
new FailOnTermVectors(FailOnTermVectors.INIT_STAGE) };
@@ -2198,7 +2199,7 @@ namespace Lucene.Net.Index
         // full), and then the exception stops (e.g., disk frees
         // up), so we successfully close IW or open an NRT
         // reader, we don't lose any deletes or updates:
-        [Test]
+        [Test, LongRunningTest] // LUCENENET TODO: Can this test be optimized to run faster
on .NET Core 1.0?
         public virtual void TestNoLostDeletesOrUpdates()
         {
             int deleteCount = 0;
@@ -2582,7 +2583,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        [Test, LongRunningTest] // LUCENENET TODO: Can this test be optimized to run faster
on .NET Core 1.0?
         public virtual void TestRandomExceptionDuringRollback()
         {
             // fail in random places on i/o

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/75ee027f/src/Lucene.Net.Tests/Index/TestIndexWriterMerging.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Index/TestIndexWriterMerging.cs b/src/Lucene.Net.Tests/Index/TestIndexWriterMerging.cs
index fb381ee..3c8987a 100644
--- a/src/Lucene.Net.Tests/Index/TestIndexWriterMerging.cs
+++ b/src/Lucene.Net.Tests/Index/TestIndexWriterMerging.cs
@@ -353,7 +353,7 @@ namespace Lucene.Net.Index
         // LUCENENET: There is no Timeout on NUnit for .NET Core.
         [Timeout(80000)]
 #endif
-        [Test, HasTimeout]
+        [Test, LongRunningTest, HasTimeout] // LUCENENET TODO: Can this test be optimized
to run faster on .NET Core 1.0?
         public virtual void TestNoWaitClose()
         {
             Directory directory = NewDirectory();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/75ee027f/src/Lucene.Net.Tests/Index/TestIndexWriterReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Index/TestIndexWriterReader.cs b/src/Lucene.Net.Tests/Index/TestIndexWriterReader.cs
index c596d87..a835d36 100644
--- a/src/Lucene.Net.Tests/Index/TestIndexWriterReader.cs
+++ b/src/Lucene.Net.Tests/Index/TestIndexWriterReader.cs
@@ -864,7 +864,7 @@ namespace Lucene.Net.Index
         }
 
         // Stress test reopen during addIndexes
-        [Test]
+        [Test, LongRunningTest] // LUCENENET TODO: Can this test be optimized to run faster
on .NET Core 1.0?
         public virtual void TestDuringAddIndexes()
         {
             Directory dir1 = GetAssertNoDeletesDirectory(NewDirectory());

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/75ee027f/src/Lucene.Net.Tests/Index/TestIndexWriterWithThreads.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Index/TestIndexWriterWithThreads.cs b/src/Lucene.Net.Tests/Index/TestIndexWriterWithThreads.cs
index a158ecd..7c6914a 100644
--- a/src/Lucene.Net.Tests/Index/TestIndexWriterWithThreads.cs
+++ b/src/Lucene.Net.Tests/Index/TestIndexWriterWithThreads.cs
@@ -1,3 +1,4 @@
+using Lucene.Net.Attributes;
 using Lucene.Net.Documents;
 using Lucene.Net.Randomized.Generators;
 using Lucene.Net.Support;
@@ -11,7 +12,7 @@ using System.Threading;
 namespace Lucene.Net.Index
 {
     //using Slow = Lucene.Net.Util.LuceneTestCase.Slow;
-    
+
     using BaseDirectoryWrapper = Lucene.Net.Store.BaseDirectoryWrapper;
     using BytesRef = Lucene.Net.Util.BytesRef;
     using Directory = Lucene.Net.Store.Directory;
@@ -483,7 +484,7 @@ namespace Lucene.Net.Index
 
         // LUCENE-1130: make sure initial IOException, and then 2nd
         // IOException during rollback(), with multiple threads, is OK:
-        [Test]
+        [Test, LongRunningTest] // LUCENENET TODO: Can this test be optimized to run faster
on .NET Core 1.0?
         public virtual void TestIOExceptionDuringAbortWithThreads([ValueSource(typeof(ConcurrentMergeSchedulerFactories),
"Values")]Func<IConcurrentMergeScheduler> newScheduler)
         {
             TestMultipleThreadsFailure(newScheduler, new FailOnlyOnAbortOrFlush(false));
@@ -491,7 +492,7 @@ namespace Lucene.Net.Index
 
         // LUCENE-1130: make sure initial IOException, and then 2nd
         // IOException during rollback(), with multiple threads, is OK:
-        [Test]
+        [Test, LongRunningTest] // LUCENENET TODO: Can this test be optimized to run faster
on .NET Core 1.0?
         public virtual void TestIOExceptionDuringAbortWithThreadsOnlyOnce([ValueSource(typeof(ConcurrentMergeSchedulerFactories),
"Values")]Func<IConcurrentMergeScheduler> newScheduler)
         {
             TestMultipleThreadsFailure(newScheduler, new FailOnlyOnAbortOrFlush(true));

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/75ee027f/src/Lucene.Net.Tests/Index/TestMixedDocValuesUpdates.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Index/TestMixedDocValuesUpdates.cs b/src/Lucene.Net.Tests/Index/TestMixedDocValuesUpdates.cs
index fe7225a..ec7510b 100644
--- a/src/Lucene.Net.Tests/Index/TestMixedDocValuesUpdates.cs
+++ b/src/Lucene.Net.Tests/Index/TestMixedDocValuesUpdates.cs
@@ -495,7 +495,7 @@ namespace Lucene.Net.Index
         // LUCENENET: There is no Timeout on NUnit for .NET Core.
         [Timeout(180000)]
 #endif
-        [Test, HasTimeout]
+        [Test, LongRunningTest, HasTimeout] // LUCENENET TODO: Can this test be optimized
to run faster on .NET Core 1.0?
         public virtual void TestTonsOfUpdates()
         {
             // LUCENE-5248: make sure that when there are many updates, we don't use too
much RAM


Mime
View raw message