You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2016/10/11 18:35:28 UTC

[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)

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 <sh...@shadstorhaug.com>
Authored: Tue Oct 11 05:28:38 2016 +0700
Committer: Shad Storhaug <sh...@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);