Alexey Semenov opened SPR-8942 and commented
There are several db aware tests.
*mvn* test -Dtest.thread.count=*1* - tests always passed
*mvn* test -Dtest.thread.count=*10* - tests sometimes failed (running tests in several threads)
*mvn* test -Dtest.thread.count=*10* -Pex - tests always passed (running tests in several threads, test with "inherited test context" in excluded from execution)
@DirtiesContext didn't help.
Most common reason of a test failure is inability to load entity just saved.
Reproducible for both: AbstractTestNGSpringContextTests and AbstractTransactionalTestNGSpringContextTests.
It looks like there is an issue in context loading/caching/sharing mechanism in case of multithreading execution.
Reproducible only from command line (not IDE).
spring versions: all (2.5.6 - 3.1.0.M2)
testng versions: all (5.* - 6.*)
hibernate versions: all (3.* - 4.0.0.Final)
maven versions: 2., 3.
p.s. the issue is same as #11897
Affects: 3.0.3, 3.0.4, 3.0.5, 3.0.6
Attachments:
Issue Links:
2 votes, 3 watchers
Alexey Semenov opened SPR-8942 and commented
There are several db aware tests.
*mvn* test -Dtest.thread.count=*1*- tests always passed*mvn* test -Dtest.thread.count=*10*- tests sometimes failed (running tests in several threads)*mvn* test -Dtest.thread.count=*10* -Pex- tests always passed (running tests in several threads, test with "inherited test context" in excluded from execution)@DirtiesContextdidn't help.Most common reason of a test failure is inability to load entity just saved.
Reproducible for both: AbstractTestNGSpringContextTests and AbstractTransactionalTestNGSpringContextTests.
It looks like there is an issue in context loading/caching/sharing mechanism in case of multithreading execution.
Reproducible only from command line (not IDE).
spring versions: all (2.5.6 - 3.1.0.M2)
testng versions: all (5.* - 6.*)
hibernate versions: all (3.* - 4.0.0.Final)
maven versions: 2., 3.
p.s. the issue is same as #11897
Affects: 3.0.3, 3.0.4, 3.0.5, 3.0.6
Attachments:
Issue Links:
2 votes, 3 watchers