Am 10.09.12 08:45 schrieb "Claus Ibsen" unter <[email protected]>:
>Hi
>
>Yep I get that failure as well running tests locally
Hi
Yes it fails but just randomly if you would run the tests more than just
once. So to me there's a race condition some where causing the tests to
fail from time to time. For example on my box they all pass pretty often:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.camel.component.elasticsearch.ElasticsearchComponentTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 23.994 sec
Running
org.apache.camel.component.elasticsearch.ElasticsearchConfigurationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.apache.camel.component.elasticsearch.SpringElasticsearchTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.716 sec
Results :
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0
Or if you would run that test alone then it would always pass (at least by
me :-)):
~/dev/workspace/camel/components/camel-elasticsearch>mvn test
-Dtest=SpringElasticsearchTest
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Camel :: ElasticSearch 2.11-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @
camel-elasticsearch ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
camel-elasticsearch ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
camel-elasticsearch ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @
camel-elasticsearch ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources
(default-testResources) @ camel-elasticsearch ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @
camel-elasticsearch ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.8:test (default-test) @
camel-elasticsearch ---
[INFO] Surefire report directory:
/Users/bvahdat/dev/workspace/camel/components/camel-elasticsearch/target/su
refire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.camel.component.elasticsearch.SpringElasticsearchTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.5 sec
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4.712s
[INFO] Finished at: Mon Sep 10 10:40:13 CEST 2012
[INFO] Final Memory: 12M/1011M
[INFO]
------------------------------------------------------------------------
Babak
>
>Running org.apache.camel.component.elasticsearch.SpringElasticsearchTest
>Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 61.454
>sec <<< FAILURE!
>
>Results :
>
>Tests in error:
>
>testSendBodyAndHeaders(org.apache.camel.component.elasticsearch.SpringElas
>ticsearchTest):
>Exception occurred during execution on the exchange: Exchange[Message:
>{content=test}]
>
>Tests run: 13, Failures: 0, Errors: 1, Skipped: 0
>
>
>On Sun, Sep 9, 2012 at 10:41 PM, Christian Müller
><[email protected]> wrote:
>> It would be nice if somebody could take a stab on CAMEL-5586 [1].
>>
>> [1] https://issues.apache.org/jira/browse/CAMEL-5586
>>
>> Best,
>> Christian
>>
>> --
>
>
>
>--
>Claus Ibsen
>-----------------
>FuseSource
>Email: [email protected]
>Web: http://fusesource.com
>Twitter: davsclaus, fusenews
>Blog: http://davsclaus.com
>Author of Camel in Action: http://www.manning.com/ibsen