-
Bug
-
Resolution: Done
-
Major
-
9.2.0.Beta1
The new tests added in for ISPN-8428 define a factory method, but do not use it correctly: tests extending MultipleCacheManagerTest are supposed to override factory() without adding a @Factory annotation, and subclass are supposed to have their own override.
Because of this, subclasses actually create new instances of the base class. TestResourceTracker doesn't like it when multiple tests with the same name run in parallel, so this causes random failures:
15:45:04,513 ERROR (testng-Test:[]) [TestSuiteProgress] Test setup failed: org.infinispan.tx.ContextAffectsTransactionReadCommittedTest.testClassStarted java.lang.IllegalStateException: Two tests with the same name running in parallel: org.infinispan.tx.Test at org.infinispan.test.fwk.TestResourceTracker.testStarted(TestResourceTracker.java:93) ~[test-classes/:?] at org.infinispan.test.AbstractInfinispanTest.testClassStarted(AbstractInfinispanTest.java:112) ~[test-classes/:?]