diff --git a/src/test/java/io/asyncer/r2dbc/mysql/IntegrationTestSupport.java b/src/test/java/io/asyncer/r2dbc/mysql/IntegrationTestSupport.java index 26d4e7728..5b8399f59 100644 --- a/src/test/java/io/asyncer/r2dbc/mysql/IntegrationTestSupport.java +++ b/src/test/java/io/asyncer/r2dbc/mysql/IntegrationTestSupport.java @@ -101,6 +101,7 @@ static MySqlConnectionConfiguration configuration( .connectTimeout(Duration.ofSeconds(3)) .user("root") .password(password) + .port(container.getMappedPort(MySQLContainer.MYSQL_PORT)) .database(database) .createDatabaseIfNotExist(createDatabaseIfNotExist) .autodetectExtensions(autodetectExtensions);