Skip to content

Commit c48a239

Browse files
committed
Use JavaScript instead of Ruby
https://build.spring.io/browse/INT-SI43X-230 Looks like Ruby engine takes some time to start and `Jsr223InboundChannelAdapterTests` is slow as 3 seconds locally as well * Change the script to JavaScript and now we have 200 millis **Cherry-pick to 4.3.x**
1 parent 870cd77 commit c48a239

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

spring-integration-scripting/src/test/java/org/springframework/integration/scripting/config/jsr223/Jsr223InboundChannelAdapterTests-context.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@
1313

1414
<inbound-channel-adapter channel="inbound-channel-adapter-channel">
1515
<poller max-messages-per-poll="1" fixed-delay="100"/>
16-
<script:script lang="ruby">
16+
<script:script lang="javascript">
1717
<![CDATA[
18-
require "java"
19-
java_import 'java.util.Date'
20-
21-
Date.new
22-
]]>
18+
(function(){ return new (Java.type('java.util.Date'))(); })();
19+
]]>
2320
</script:script>
2421
<header name="foo" value="bar"/>
2522
</inbound-channel-adapter>

0 commit comments

Comments
 (0)