Skip to content

Commit

Permalink
Changed rabbitmq default image version.
Browse files Browse the repository at this point in the history
Set waiting strategy before starting container.
  • Loading branch information
jvrlic committed Feb 16, 2021
1 parent e4e5618 commit 758be27
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public void initialize(ConfigurableApplicationContext configurableApplicationCon
environment.getProperty("testcontainers.rabbit.docker.image"))
.map(RabbitContainerWrapper::new)
.orElseGet(
() -> new RabbitContainerWrapper("rabbitmq:3.6.14-alpine"));
() -> new RabbitContainerWrapper("rabbitmq:3.8.9-alpine"));

start(container);
container.waitingFor(Wait.forListeningPort());
start(container);

TestPropertyValues values = TestPropertyValues.of(
String.format("spring.rabbitmq.addresses=%s:%d", container.getContainerIpAddress(),
Expand Down

0 comments on commit 758be27

Please sign in to comment.