Skip to content

Commit 31809c7

Browse files
committed
Replace Testcontainer getContainerIpAddress with getHost
1 parent 535175d commit 31809c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/rabbit/AmqpItemReaderAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class AmqpItemReaderAutoConfigurationTests {
7171
.withExposedPorts(5672);
7272
rabbitmq.start();
7373
final Integer mappedPort = rabbitmq.getMappedPort(5672);
74-
host = rabbitmq.getContainerIpAddress();
74+
host = rabbitmq.getHost();
7575
amqpPort = mappedPort;
7676
}
7777

spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/rabbit/AmqpItemWriterAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public class AmqpItemWriterAutoConfigurationTests {
8484
.withExposedPorts(5672);
8585
rabbitmq.start();
8686
final Integer mappedPort = rabbitmq.getMappedPort(5672);
87-
host = rabbitmq.getContainerIpAddress();
87+
host = rabbitmq.getHost();
8888
amqpPort = mappedPort;
8989
sampleData = new ArrayList<>(5);
9090
addNameToReaderList(sampleData, "Jane");

0 commit comments

Comments
 (0)