Replace Testcontainer getContainerIpAddress with getHost

This commit is contained in:
Glenn Renfro
2022-05-25 09:53:02 -04:00
parent 535175d664
commit 31809c75e2
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ public class AmqpItemReaderAutoConfigurationTests {
.withExposedPorts(5672);
rabbitmq.start();
final Integer mappedPort = rabbitmq.getMappedPort(5672);
host = rabbitmq.getContainerIpAddress();
host = rabbitmq.getHost();
amqpPort = mappedPort;
}

View File

@@ -84,7 +84,7 @@ public class AmqpItemWriterAutoConfigurationTests {
.withExposedPorts(5672);
rabbitmq.start();
final Integer mappedPort = rabbitmq.getMappedPort(5672);
host = rabbitmq.getContainerIpAddress();
host = rabbitmq.getHost();
amqpPort = mappedPort;
sampleData = new ArrayList<>(5);
addNameToReaderList(sampleData, "Jane");