Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Abandoned
-
None
-
None
-
None
-
None
Description
Many of the existing test cases take longer than they should and fail randomly due to BrokerService instances that are still running that have open JMX connectors etc. We should take some time to review tests and clean up were we can.
Removing hard sleeps and using admin view to check statistics can dramatically shorten a test. Also the tests can be configured not to create JMX connectors as none of them need that in the normal case.
Other tasks that could be done is to update tests to JUnit 4 based tests with test timeouts to help prevent CI hangs.