lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [43/47] lucenenet git commit: Not sensible to make Core.Util.TestPriorityQueue.Benchmarks() fail when verbosity is turned off. Added AssumeTrue to skip the test when verbosity is not set and run it when it is (note this test doesn't exist in Java Lucene)
Date Tue, 11 Oct 2016 18:35:28 GMT
Not sensible to make Core.Util.TestPriorityQueue.Benchmarks() fail when verbosity is turned
off. Added AssumeTrue to skip the test when verbosity is not set and run it when it is (note
this test doesn't exist in Java Lucene).


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

Branch: refs/heads/master
Commit: 2aaf3b5b50a596cbe4f9774e1d4ec1a9c2b1bea8
Parents: 2a79ede
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Tue Oct 11 05:28:38 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Oct 12 01:10:58 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Util/TestPriorityQueue.cs | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/2aaf3b5b/src/Lucene.Net.Tests/core/Util/TestPriorityQueue.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestPriorityQueue.cs b/src/Lucene.Net.Tests/core/Util/TestPriorityQueue.cs
index 59bc78d..ed059c9 100644
--- a/src/Lucene.Net.Tests/core/Util/TestPriorityQueue.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestPriorityQueue.cs
@@ -616,10 +616,7 @@ namespace Lucene.Net.Util
         [Test, Explicit]
         public static void Benchmarks()
         {
-            if (!VERBOSE)
-            {
-                Assert.Fail("Turn VERBOSE on or otherwise you won't see the results.");
-            }
+            AssumeTrue("Turn VERBOSE on or otherwise you won't see the results.", VERBOSE);
                
             int maxSize = AtLeast(100000);
             PriorityQueue<int?> pq = new IntegerQueue(maxSize);


Mime
View raw message