camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/2] camel git commit: CAMEL-8210 Fixed the failed ruby test
Date Wed, 07 Jan 2015 06:36:31 GMT
CAMEL-8210 Fixed the failed ruby test


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

Branch: refs/heads/master
Commit: e421bf5683273757f0b0795d49d8a3a9a6228840
Parents: 5f4cb5e
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Wed Jan 7 14:36:13 2015 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Wed Jan 7 14:36:13 2015 +0800

----------------------------------------------------------------------
 .../apache/camel/builder/script/JRubyScriptThreadSafeTest.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e421bf56/components/camel-script/src/test/java/org/apache/camel/builder/script/JRubyScriptThreadSafeTest.java
----------------------------------------------------------------------
diff --git a/components/camel-script/src/test/java/org/apache/camel/builder/script/JRubyScriptThreadSafeTest.java
b/components/camel-script/src/test/java/org/apache/camel/builder/script/JRubyScriptThreadSafeTest.java
index 5dd68ff..795f3d4 100644
--- a/components/camel-script/src/test/java/org/apache/camel/builder/script/JRubyScriptThreadSafeTest.java
+++ b/components/camel-script/src/test/java/org/apache/camel/builder/script/JRubyScriptThreadSafeTest.java
@@ -58,7 +58,8 @@ public class JRubyScriptThreadSafeTest extends CamelTestSupport {
             @Override
             public void configure() throws Exception {
                 context.getProperties().put(Exchange.REUSE_SCRIPT_ENGINE, "true");
-                context.getProperties().put(Exchange.COMPILE_SCRIPT, "true");
+                // Now the default the value is not use the compiled script, as it could
introduce some concurrent issue
+                context.getProperties().put(Exchange.COMPILE_SCRIPT, "false");
 
 
                 from("seda:parallel?concurrentConsumers=5")


Mime
View raw message