Skip to content

Commit

Permalink
formating
Browse files Browse the repository at this point in the history
  • Loading branch information
ggivo committed Jan 15, 2025
1 parent 5d32192 commit c1826e5
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/test/java/io/lettuce/core/RedisContainerIntegrationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@ public class RedisContainerIntegrationTests {
private static Exception initializationException;

public static ComposeContainer CLUSTERED_STACK = new ComposeContainer(
new File("src/test/resources/docker/docker-compose.yml"))
.withExposedService(REDIS_STACK_CLUSTER, 36379)
.withExposedService(REDIS_STACK_CLUSTER, 36380)
.withExposedService(REDIS_STACK_CLUSTER, 36381)
.withExposedService(REDIS_STACK_STANDALONE, 6379)
.withEnv("CLIENT_LIBS_TEST_IMAGE", "redislabs/client-libs-test")
.withEnv("REDIS_STACK_VERSION", REDIS_STACK_VERSION)
.withPull(false)
.withLocalCompose(true);
new File("src/test/resources/docker/docker-compose.yml")).withExposedService(REDIS_STACK_CLUSTER, 36379)
.withExposedService(REDIS_STACK_CLUSTER, 36380).withExposedService(REDIS_STACK_CLUSTER, 36381)
.withExposedService(REDIS_STACK_STANDALONE, 6379)
.withEnv("CLIENT_LIBS_TEST_IMAGE", "redislabs/client-libs-test")
.withEnv("REDIS_STACK_VERSION", REDIS_STACK_VERSION).withPull(false).withLocalCompose(true);

// Singleton container pattern - start the containers only once
// See https://java.testcontainers.org/test_framework_integration/manual_lifecycle_control/#singleton-containers
Expand All @@ -50,8 +46,7 @@ public class RedisContainerIntegrationTests {
CLUSTERED_STACK.withLogConsumer(REDIS_STACK_CLUSTER, (OutputFrame frame) -> LOGGER.debug(frame.getUtf8String()));
CLUSTERED_STACK.withLogConsumer(REDIS_STACK_STANDALONE, (OutputFrame frame) -> LOGGER.debug(frame.getUtf8String()));

CLUSTERED_STACK.waitingFor(REDIS_STACK_CLUSTER,
Wait.forLogMessage("Cluster created with nodes:.*", 1));
CLUSTERED_STACK.waitingFor(REDIS_STACK_CLUSTER, Wait.forLogMessage("Cluster created with nodes:.*", 1));
do {
try {
CLUSTERED_STACK.start();
Expand Down

0 comments on commit c1826e5

Please sign in to comment.