From ae4b3fffb27952c9c380ccbc2d7db750dde97a70 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Fri, 14 Dec 2018 11:52:21 -0500 Subject: [PATCH] Increase expire period for testExpireTwoRegistries https://build.spring.io/browse/INT-MASTER-1313/ **Cherry-pick to 5.0.x** (cherry picked from commit 89fdb938de5eecc49c61ab6e1196c6681a3e07b5) --- .../integration/redis/util/RedisLockRegistryTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-integration-redis/src/test/java/org/springframework/integration/redis/util/RedisLockRegistryTests.java b/spring-integration-redis/src/test/java/org/springframework/integration/redis/util/RedisLockRegistryTests.java index fb775bd9b4..30fad35e20 100644 --- a/spring-integration-redis/src/test/java/org/springframework/integration/redis/util/RedisLockRegistryTests.java +++ b/spring-integration-redis/src/test/java/org/springframework/integration/redis/util/RedisLockRegistryTests.java @@ -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());