Increase expire period for testExpireTwoRegistries

https://build.spring.io/browse/INT-MASTER-1313/

**Cherry-pick to 5.0.x**

(cherry picked from commit 89fdb938de)
This commit is contained in:
Artem Bilan
2018-12-14 11:52:21 -05:00
parent 0199741d29
commit ae4b3fffb2

View File

@@ -341,8 +341,8 @@ public class RedisLockRegistryTests extends RedisAvailableTests {
@Test
@RedisAvailable
public void testExpireTwoRegistries() throws Exception {
RedisLockRegistry registry1 = new RedisLockRegistry(getConnectionFactoryForTest(), this.registryKey, 1);
RedisLockRegistry registry2 = new RedisLockRegistry(getConnectionFactoryForTest(), this.registryKey, 1);
RedisLockRegistry registry1 = new RedisLockRegistry(getConnectionFactoryForTest(), this.registryKey, 100);
RedisLockRegistry registry2 = new RedisLockRegistry(getConnectionFactoryForTest(), this.registryKey, 100);
Lock lock1 = registry1.obtain("foo");
Lock lock2 = registry2.obtain("foo");
assertTrue(lock1.tryLock());