[
https://issues.apache.org/jira/browse/CAMEL-6942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13815296#comment-13815296
]
Babak Vahdat commented on CAMEL-6942:
-------------------------------------
After a *complete* rework and refactoring of both tests they both take around 6
seconds on my box:
{code}
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.camel.itest.jms.JmsPerformanceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.673 sec - in
org.apache.camel.itest.jms.JmsPerformanceTest
{code}
{code}
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.camel.itest.jms.JmsMediumQueuePerformanceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.358 sec - in
org.apache.camel.itest.jms.JmsMediumQueuePerformanceTest
{code}
Please note that 3 seconds of each test execution is consumed by a hard-coded
sleep of each test:
{code}
...
// should wait a bit to make sure all messages have been received by the
MyBean#onMessage() method
// as this happens asynchronously, that's not inside the 'main' thread
Thread.sleep(3000);
...
{code}
> itest - JmsMediumQueuePerformanceTest - Look into itest that takes a long time
> ------------------------------------------------------------------------------
>
> Key: CAMEL-6942
> URL: https://issues.apache.org/jira/browse/CAMEL-6942
> Project: Camel
> Issue Type: Test
> Components: tests
> Affects Versions: 2.13.0
> Reporter: Claus Ibsen
> Assignee: Babak Vahdat
> Priority: Minor
>
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 310.62 sec -
> in org.apache.camel.itest.jms.JmsMediumQueuePerformanceTest
> A potential issue here with a test that shouldn't take 300 sec. normally
--
This message was sent by Atlassian JIRA
(v6.1#6144)