Dan Berindei created ISPN-8537:
----------------------------------
Summary: Off-heap tx tests random failures
Key: ISPN-8537
URL:
https://issues.jboss.org/browse/ISPN-8537
Project: Infinispan
Issue Type: Bug
Components: Test Suite - Core
Affects Versions: 9.2.0.Beta1
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 9.2.0.Beta2
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:
{noformat}
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/:?]
{noformat}
{noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)