Skip to content

Commit

Permalink
Forgot to change ports and stop debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
tishun committed Sep 25, 2024
1 parent 518dc3e commit 538fdc8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
public class RedisContainerIntegrationTests {

public static ComposeContainer CLUSTERED_STACK = new ComposeContainer(
new File("src/test/resources/docker/docker-compose.yml")).withExposedService("clustered-stack", 26379)
.withExposedService("clustered-stack", 26380).withExposedService("clustered-stack", 26381)
.withExposedService("clustered-stack", 26382).withExposedService("clustered-stack", 26383)
.withExposedService("clustered-stack", 26384).withExposedService("standalone-stack", 6379);
new File("src/test/resources/docker/docker-compose.yml")).withExposedService("clustered-stack", 36379)
.withExposedService("clustered-stack", 36380).withExposedService("clustered-stack", 36381)
.withExposedService("clustered-stack", 36382).withExposedService("clustered-stack", 36383)
.withExposedService("clustered-stack", 36384).withExposedService("standalone-stack", 6379);

@BeforeAll
public static void setup() throws IOException, InterruptedException {
// In case you need to debug the container uncomment these lines to redirect the output
// CLUSTERED_STACK.withLogConsumer("clustered-stack", new SystemOutputConsumer("clustered"));
// CLUSTERED_STACK.withLogConsumer("standalone-stack", new SystemOutputConsumer("standalone"));
CLUSTERED_STACK.withLogConsumer("clustered-stack", new SystemOutputConsumer("clustered"));
CLUSTERED_STACK.withLogConsumer("standalone-stack", new SystemOutputConsumer("standalone"));

CLUSTERED_STACK.waitingFor("clustered-stack",
Wait.forLogMessage(".*Background RDB transfer terminated with success.*", 1));
Expand Down

0 comments on commit 538fdc8

Please sign in to comment.