Replace Testcontainer getContainerIpAddress with getHost
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user