citrusframework / citrus-samples

Citrus sample projects using Java DSL tests and Spring Java configuration
https://citrusframework.org/samples/
71 stars 125 forks source link

sample-http-loadtest fails most of the time with ConcurrentModificationException #42

Open turing85 opened 5 years ago

turing85 commented 5 years ago

Citrus Version 2.8.0

Expected behavior Test should pass.

Actual behavior ~10% of the time, the test will actually pass. In the other cases, the test will fail with:

[ERROR] testAddTodo(com.consol.citrus.samples.todolist.TodoListLoadTestIT)  Time elapsed: 0.535 s  <<< FAILURE!
com.consol.citrus.exceptions.TestCaseFailedException: Test case failed
Caused by: java.util.ConcurrentModificationException

Test case sample

> cd /path/to/citrus-samples
> mvn verify -Dembedded -pl :citrus-java-sample-http-loadtest
> mvn verify -Dembedded -pl :citrus-xml-sample-http-loadtest