Use mysql:9.2 for DB tests

This updates the PulsarTxnWithDbTxnTestsBase to use mysql:9.2 rather than
mysql:latest which is now mysql:9.3 and has removed a property that is still
used by Testcontainers v1.20.6.

(cherry picked from commit 910b5e5717)
This commit is contained in:
Chris Bono
2025-04-21 14:20:52 -05:00
parent c6cec6b4db
commit b1812b20cd

View File

@@ -54,7 +54,7 @@ class PulsarTxnWithDbTxnTestsBase extends PulsarTxnTestsBase {
private static final Logger LOG = LoggerFactory.getLogger(PulsarTxnWithDbTxnTestsBase.class);
static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>(DockerImageName.parse("mysql:latest"))
static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>(DockerImageName.parse("mysql:9.2"))
.withInitScript("transaction/init.sql")
.withLogConsumer(new Slf4jLogConsumer(LOG));