fix(testcontainers): align versions and stabilize PostGIS setup
Unify Testcontainers dependencies to a consistent version and remove custom container tweaks that caused instability with Podman. - align all Testcontainers dependencies to 2.0.5 - remove `HostPortWaitStrategy` (PostgreSQLContainer already defines an appropriate wait strategy) - remove `withReuse(true)` (may retain state across runs and break reproducibility) Signed-off-by: Marcus Fihlon <marcus@fihlon.swiss>
This commit is contained in:
parent
37aa63ff28
commit
649d1e8c5f
2 changed files with 5 additions and 9 deletions
|
|
@ -4,7 +4,6 @@ import org.springframework.boot.test.context.TestConfiguration;
|
|||
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.testcontainers.containers.PostgreSQLContainer;
|
||||
import org.testcontainers.containers.wait.strategy.HostPortWaitStrategy;
|
||||
import org.testcontainers.utility.DockerImageName;
|
||||
|
||||
/**
|
||||
|
|
@ -23,8 +22,6 @@ public class TestcontainersConfiguration {
|
|||
)
|
||||
.withDatabaseName("testdb")
|
||||
.withUsername("test")
|
||||
.withPassword("test")
|
||||
.waitingFor(new HostPortWaitStrategy())
|
||||
.withReuse(true);
|
||||
.withPassword("test");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue