diff --git a/patbond-user/src/test/java/com/patbond/patbond/user/TestcontainersConfiguration.java b/patbond-user/src/test/java/com/patbond/patbond/user/TestcontainersConfiguration.java index b732ab9..f955daf 100644 --- a/patbond-user/src/test/java/com/patbond/patbond/user/TestcontainersConfiguration.java +++ b/patbond-user/src/test/java/com/patbond/patbond/user/TestcontainersConfiguration.java @@ -7,7 +7,7 @@ import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.utility.DockerImageName; /** - * Shared Testcontainers setup: a disposable postgres:16 (the production + * Shared Testcontainers setup: a disposable postgres:18 (the production * target version) wired into the Spring context via @ServiceConnection. * Flyway runs the real migrations against it on context startup, so every * @SpringBootTest in this module exercises the V1 baseline on a clean @@ -19,6 +19,6 @@ public class TestcontainersConfiguration { @Bean @ServiceConnection PostgreSQLContainer postgresContainer() { - return new PostgreSQLContainer<>(DockerImageName.parse("postgres:16")); + return new PostgreSQLContainer<>(DockerImageName.parse("postgres:18")); } } diff --git a/patbond-user/src/test/java/com/patbond/patbond/user/persistence/UserPersistenceIntegrationTest.java b/patbond-user/src/test/java/com/patbond/patbond/user/persistence/UserPersistenceIntegrationTest.java index 69aa4b5..ebd1ebf 100644 --- a/patbond-user/src/test/java/com/patbond/patbond/user/persistence/UserPersistenceIntegrationTest.java +++ b/patbond-user/src/test/java/com/patbond/patbond/user/persistence/UserPersistenceIntegrationTest.java @@ -24,7 +24,7 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; /** * Verifies the Flyway V1 baseline and the real persistence semantics against - * a clean postgres:16 container: migrations apply, constraints hold, and a + * a clean postgres:18 container: migrations apply, constraints hold, and a * registered user is durably stored in PostgreSQL (readable over a fresh raw * JDBC connection, i.e. independent of any application-process memory — the * restart-survival semantics that killed the old ConcurrentHashMap storage).