]
Galder Zamarreño updated ISPN-5586:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 8.0.0.Final
Resolution: Done
TestResourceTracker.backgroundTestStarted(this) doesn't work from
the IDE
-------------------------------------------------------------------------
Key: ISPN-5586
URL:
https://issues.jboss.org/browse/ISPN-5586
Project: Infinispan
Issue Type: Bug
Components: Core, Test Suite - Core
Affects Versions: 8.0.0.Alpha2, 7.2.3.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 8.0.0.Beta1, 8.0.0.Final
When running from an IDE, {{UnitTestTestNGListener}} doesn't (usually) run, so the
current test name isn't set on the main thread.
({{TestResourceTracker.getCurrentTestName()}} returns "main").
Calling {{TestResourceTracker.backgroundTestStarted()}} on a worker thread sets the
proper test name, and because of {{TEST_PING}}, the cache managers started from the main
thread and the worker thread can't join the same cluster.