You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by jh...@apache.org on 2014/07/28 20:56:28 UTC

[4/7] git commit: Throttle down PartiallyOrderedSetTest.

Throttle down PartiallyOrderedSetTest.


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

Branch: refs/heads/master
Commit: a46153985300404213343e31486444695253f702
Parents: 4a46cdb
Author: Julian Hyde <jh...@apache.org>
Authored: Wed Jul 23 00:51:47 2014 -0700
Committer: Julian Hyde <jh...@apache.org>
Committed: Mon Jul 28 11:12:52 2014 -0700

----------------------------------------------------------------------
 .../net/hydromatic/optiq/util/PartiallyOrderedSetTest.java  | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-optiq/blob/a4615398/core/src/test/java/net/hydromatic/optiq/util/PartiallyOrderedSetTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/net/hydromatic/optiq/util/PartiallyOrderedSetTest.java b/core/src/test/java/net/hydromatic/optiq/util/PartiallyOrderedSetTest.java
index ec18ae4..4727a4d 100644
--- a/core/src/test/java/net/hydromatic/optiq/util/PartiallyOrderedSetTest.java
+++ b/core/src/test/java/net/hydromatic/optiq/util/PartiallyOrderedSetTest.java
@@ -17,6 +17,8 @@
 */
 package net.hydromatic.optiq.util;
 
+import net.hydromatic.optiq.test.OptiqAssert;
+
 import org.eigenbase.util.TestUtil;
 
 import org.junit.Test;
@@ -30,7 +32,9 @@ import static org.junit.Assert.*;
  */
 public class PartiallyOrderedSetTest {
   private static final boolean DEBUG = false;
-  private static final int SCALE = 100; // 100, 250, 1000, 3000 are reasonable
+
+  // 100, 250, 1000, 3000 are reasonable
+  private static final int SCALE = OptiqAssert.ENABLE_SLOW ? 250 : 50;
 
   final long seed = new Random().nextLong();
   final Random random = new Random(seed);
@@ -215,6 +219,9 @@ public class PartiallyOrderedSetTest {
   }
 
   @Test public void testDivisorPoset() {
+    if (!OptiqAssert.ENABLE_SLOW) {
+      return;
+    }
     PartiallyOrderedSet<Integer> integers =
         new PartiallyOrderedSet<Integer>(IS_DIVISOR, range(1, 1000));
     assertEquals(