Instead of running several failover tests on the integration testsuite, what would require killing the server on each run, I'm writing tests that will run in Parallel and will wait for a CountDownLatch, and when every test is on the place before failover I will do a single kill, and finish all tests at once.
For doing this I am writting a small reusable framework defined by two very simple classes:
- ParallelTest and ParallelTestContainer.
I will probably have those classes checked in on EAP 4.2 by tomorrow, and I will then star merging those on trunk. (I was actually doing this first on trunk but I gave up since trunk was a bit unstable last week. Once I have something done I will resume this on jboss trunk again).