kstyrc / embedded-redis

Redis embedded server for Java integration testing
832 stars 366 forks source link

Allow changing the "readiness check" for different redis versions #111

Open ikempf opened 5 years ago

ikempf commented 5 years ago

Different versions of Redis have different startup outputs. The currently implemented readiness check works for Redis 2.8.19 but not for Redis 4.0.4 nor 5.0.5.

Redis 5.0.5 standalone output

73261:M 23 May 2019 17:40:38.542 * Ready to accept connections

Redis 5.0.5 sentinel output

73460:X 23 May 2019 17:43:28.517 # Sentinel ID is 0beaec56384551b5258545a5f41cba769a01d4f1

When defining a different redis executable (RedisExecProvider) it should be possible to override the REDIS_READY_PATTEN