Fix a silly typo when generating Redis URIs for tests

This commit is contained in:
Jon Chambers
2025-07-17 12:43:57 -04:00
committed by Jon Chambers
parent 631b9a5290
commit 73365369df

View File

@@ -140,8 +140,8 @@ public class RedisClusterExtension implements BeforeAllCallback, BeforeEachCallb
redisUris = Arrays.stream(REDIS_SERVICE_NAMES)
.map(serviceName -> RedisURI.create(
composeContainer.getServiceHost("redis-0-1", REDIS_PORT),
composeContainer.getServicePort("redis-0-1", REDIS_PORT)))
composeContainer.getServiceHost(serviceName, REDIS_PORT),
composeContainer.getServicePort(serviceName, REDIS_PORT)))
.toList();
// Wait for the cluster to be fully up; just having the containers running isn't enough since they still need to do