From 3efdc5207ee8dc5bc5740ae661df7c0b0a46ca8d Mon Sep 17 00:00:00 2001 From: Julien Dubois Date: Tue, 5 Nov 2024 14:56:20 +0100 Subject: [PATCH] Fix testcontainers + MySQL bug See https://github.com/testcontainers/testcontainers-java/issues/8130 --- pom.xml | 2 +- src/test/resources/config/application.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 60a3707c..16ea4cec 100644 --- a/pom.xml +++ b/pom.xml @@ -105,7 +105,7 @@ org.testcontainers testcontainers-bom - 1.17.3 + 1.20.3 pom import diff --git a/src/test/resources/config/application.yml b/src/test/resources/config/application.yml index b5db277b..e18a125d 100644 --- a/src/test/resources/config/application.yml +++ b/src/test/resources/config/application.yml @@ -18,8 +18,8 @@ spring: name: jhonline datasource: type: com.zaxxer.hikari.HikariDataSource - url: jdbc:tc:mysql:8://localhost:3306/jhipster-online?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC&createDatabaseIfNotExist=true - username: root + url: jdbc:tc:mysql:8.2.0:///jhipster-online?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC&createDatabaseIfNotExist=true + username: test password: hikari: poolName: Hikari