You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by he...@apache.org on 2015/12/14 20:55:58 UTC

camel git commit: Hive tests should be disabled on CI.

Repository: camel
Updated Branches:
  refs/heads/master 0890e8f28 -> 66600aa81


Hive tests should be disabled on CI.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/66600aa8
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/66600aa8
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/66600aa8

Branch: refs/heads/master
Commit: 66600aa8107bfe499d4f9b35f81d185dea00377e
Parents: 0890e8f
Author: Henryk Konsek <he...@gmail.com>
Authored: Mon Dec 14 20:55:53 2015 +0100
Committer: Henryk Konsek <he...@gmail.com>
Committed: Mon Dec 14 20:55:53 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/spark/SparkProducerTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/66600aa8/components/camel-spark/src/test/java/org/apache/camel/component/spark/SparkProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-spark/src/test/java/org/apache/camel/component/spark/SparkProducerTest.java b/components/camel-spark/src/test/java/org/apache/camel/component/spark/SparkProducerTest.java
index 44fc203..311d641 100644
--- a/components/camel-spark/src/test/java/org/apache/camel/component/spark/SparkProducerTest.java
+++ b/components/camel-spark/src/test/java/org/apache/camel/component/spark/SparkProducerTest.java
@@ -19,7 +19,7 @@ package org.apache.camel.component.spark;
 import java.io.File;
 import java.io.IOException;
 
-import static java.lang.Runtime.getRuntime;
+import static java.lang.Boolean.parseBoolean;
 import static java.util.Arrays.asList;
 
 import com.google.common.truth.Truth;
@@ -46,7 +46,7 @@ public class SparkProducerTest extends CamelTestSupport {
 
     static JavaSparkContext sparkContext = createLocalSparkContext();
 
-    static boolean shouldRunHive = getRuntime().maxMemory() > 2 * 1024 * 1024 * 1024;
+    static boolean shouldRunHive = parseBoolean(System.getenv("CAMEL_SPARK_HIVE_TESTS"));
 
     static HiveContext hiveContext;