Skip to content

Commit ae4b3ff

Browse files
committed
Increase expire period for testExpireTwoRegistries
https://build.spring.io/browse/INT-MASTER-1313/ **Cherry-pick to 5.0.x** (cherry picked from commit 89fdb93)
1 parent 0199741 commit ae4b3ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-integration-redis/src/test/java/org/springframework/integration/redis/util/RedisLockRegistryTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ public void testTwoThreadsWrongOneUnlocks() throws Exception {
341341
@Test
342342
@RedisAvailable
343343
public void testExpireTwoRegistries() throws Exception {
344-
RedisLockRegistry registry1 = new RedisLockRegistry(getConnectionFactoryForTest(), this.registryKey, 1);
345-
RedisLockRegistry registry2 = new RedisLockRegistry(getConnectionFactoryForTest(), this.registryKey, 1);
344+
RedisLockRegistry registry1 = new RedisLockRegistry(getConnectionFactoryForTest(), this.registryKey, 100);
345+
RedisLockRegistry registry2 = new RedisLockRegistry(getConnectionFactoryForTest(), this.registryKey, 100);
346346
Lock lock1 = registry1.obtain("foo");
347347
Lock lock2 = registry2.obtain("foo");
348348
assertTrue(lock1.tryLock());

0 commit comments

Comments
 (0)