From 8b2206ba3601e201f256edf0e9299e8d7659748b Mon Sep 17 00:00:00 2001 From: AndyWilks79 <33414776+AndyWilks79@users.noreply.github.com> Date: Sat, 18 Nov 2017 19:19:38 +0000 Subject: [PATCH] Updated REDIS_READY_PATTERN to match more Redis versions Updated REDIS_READY_PATTERN to match more versions of Redis. Since version 4.0.* the final startup statement has changed, embedded Redis loops forever when it does not match the expected pattern. --- src/main/java/redis/embedded/RedisServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/redis/embedded/RedisServer.java b/src/main/java/redis/embedded/RedisServer.java index 10927f31..d6dab7de 100644 --- a/src/main/java/redis/embedded/RedisServer.java +++ b/src/main/java/redis/embedded/RedisServer.java @@ -7,7 +7,7 @@ import java.util.List; public class RedisServer extends AbstractRedisInstance { - private static final String REDIS_READY_PATTERN = ".*The server is now ready to accept connections on port.*"; + private static final String REDIS_READY_PATTERN = ".*(R|r)eady to accept connections.*"; private static final int DEFAULT_REDIS_PORT = 6379; public RedisServer() throws IOException {