Fix JdbcLockRegistryTests.testTwoThreadsDifferentRegistries()
The test is supposed to verify against different clients, but same DB
This commit is contained in:
@@ -251,7 +251,11 @@ public class JdbcLockRegistryTests {
|
||||
for (int i = 0; i < 100; i++) {
|
||||
|
||||
final JdbcLockRegistry registry1 = new JdbcLockRegistry(this.client);
|
||||
final JdbcLockRegistry registry2 = new JdbcLockRegistry(this.client);
|
||||
DefaultLockRepository client2 = new DefaultLockRepository(this.dataSource);
|
||||
client2.setTransactionManager(this.transactionManager);
|
||||
client2.afterPropertiesSet();
|
||||
client2.afterSingletonsInstantiated();
|
||||
final JdbcLockRegistry registry2 = new JdbcLockRegistry(client2);
|
||||
final Lock lock1 = registry1.obtain("foo");
|
||||
final AtomicBoolean locked = new AtomicBoolean();
|
||||
final CountDownLatch latch1 = new CountDownLatch(1);
|
||||
|
||||
Reference in New Issue
Block a user