Upgrade to Testcontainers 1.14.2
See gh-21581
This commit is contained in:
committed by
Stephane Nicoll
parent
35121f182e
commit
b498d3903f
@@ -103,8 +103,8 @@ class DeploymentIntegrationTests {
|
||||
this.port)) {
|
||||
container.start();
|
||||
TestRestTemplate rest = new TestRestTemplate(new RestTemplateBuilder()
|
||||
.rootUri("http://" + container.getContainerIpAddress() + ":"
|
||||
+ container.getMappedPort(this.port) + "/spring-boot")
|
||||
.rootUri("http://" + container.getHost() + ":" + container.getMappedPort(this.port)
|
||||
+ "/spring-boot")
|
||||
.requestFactory(() -> new HttpComponentsClientHttpRequestFactory(HttpClients.custom()
|
||||
.setRetryHandler(new StandardHttpRequestRetryHandler(10, false)).build())));
|
||||
try {
|
||||
|
||||
@@ -61,7 +61,7 @@ class CityRepositoryTests {
|
||||
}
|
||||
|
||||
private static String r2dbcUrl() {
|
||||
return String.format("r2dbc:postgresql://%s:%s/%s", postgresql.getContainerIpAddress(),
|
||||
return String.format("r2dbc:postgresql://%s:%s/%s", postgresql.getHost(),
|
||||
postgresql.getMappedPort(PostgreSQLContainer.POSTGRESQL_PORT), postgresql.getDatabaseName());
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ class CityRepositoryTests {
|
||||
}
|
||||
|
||||
private static String r2dbcUrl() {
|
||||
return String.format("r2dbc:postgresql://%s:%s/%s", postgresql.getContainerIpAddress(),
|
||||
return String.format("r2dbc:postgresql://%s:%s/%s", postgresql.getHost(),
|
||||
postgresql.getMappedPort(PostgreSQLContainer.POSTGRESQL_PORT), postgresql.getDatabaseName());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user