From e8d17df0a6945ad93e6db2675808a536b7c6d65e Mon Sep 17 00:00:00 2001 From: Viren Baraiya Date: Tue, 19 Dec 2023 01:06:22 -0800 Subject: [PATCH] Update RedisLockTest.java --- .../com/netflix/conductor/redis/lock/RedisLockTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/redis-lock/src/test/java/com/netflix/conductor/redis/lock/RedisLockTest.java b/redis-lock/src/test/java/com/netflix/conductor/redis/lock/RedisLockTest.java index 9a9cc3867..24953dd7b 100644 --- a/redis-lock/src/test/java/com/netflix/conductor/redis/lock/RedisLockTest.java +++ b/redis-lock/src/test/java/com/netflix/conductor/redis/lock/RedisLockTest.java @@ -21,13 +21,12 @@ import org.redisson.api.RLock; import org.redisson.api.RedissonClient; import org.redisson.config.Config; +import org.testcontainers.containers.*; import com.netflix.conductor.redislock.config.RedisLockProperties; import com.netflix.conductor.redislock.config.RedisLockProperties.REDIS_SERVER_TYPE; import com.netflix.conductor.redislock.lock.RedisLock; -import org.testcontainers.containers.*; - import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.mock; @@ -39,8 +38,8 @@ public class RedisLockTest { private static Config config; private static RedissonClient redisson; - static GenericContainer redis = new GenericContainer("redis:5.0.3-alpine") - .withExposedPorts(6379); + static GenericContainer redis = + new GenericContainer("redis:5.0.3-alpine").withExposedPorts(6379); @BeforeClass public static void setUp() throws Exception {