Skip to content

Commit

Permalink
Updated REDIS_READY_PATTERN to match more Redis versions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AndyWilks79 authored Nov 18, 2017
1 parent faa0874 commit 8b2206b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/redis/embedded/RedisServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8b2206b

Please sign in to comment.