Skip to content

Commit 66c70d9

Browse files
committed
chore(deps): bump testcontainers from 0.17.0 to 0.23.3
1 parent d4ec44e commit 66c70d9

File tree

1 file changed

+5
-4
lines changed
  • packages/tracker-core/src/databases/driver

1 file changed

+5
-4
lines changed

packages/tracker-core/src/databases/driver/mysql.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ impl Database for Mysql {
268268
mod tests {
269269
use std::sync::Arc;
270270

271+
use testcontainers::core::IntoContainerPort;
271272
/*
272273
We run a MySQL container and run all the tests against the same container and database.
273274
@@ -285,7 +286,7 @@ mod tests {
285286
If we increase the number of methods or the number or drivers.
286287
*/
287288
use testcontainers::runners::AsyncRunner;
288-
use testcontainers::{ContainerAsync, GenericImage};
289+
use testcontainers::{ContainerAsync, GenericImage, ImageExt};
289290
use torrust_tracker_configuration::Core;
290291

291292
use super::Mysql;
@@ -298,12 +299,12 @@ mod tests {
298299
impl StoppedMysqlContainer {
299300
async fn run(self, config: &MysqlConfiguration) -> Result<RunningMysqlContainer, Box<dyn std::error::Error + 'static>> {
300301
let container = GenericImage::new("mysql", "8.0")
302+
.with_exposed_port(config.internal_port.tcp())
303+
// todo: this does not work
304+
//.with_wait_for(WaitFor::message_on_stdout("ready for connections"))
301305
.with_env_var("MYSQL_ROOT_PASSWORD", config.db_root_password.clone())
302306
.with_env_var("MYSQL_DATABASE", config.database.clone())
303307
.with_env_var("MYSQL_ROOT_HOST", "%")
304-
.with_exposed_port(config.internal_port)
305-
// todo: this doesn't work
306-
//.with_wait_for(WaitFor::message_on_stdout("ready for connections"))
307308
.start()
308309
.await?;
309310

0 commit comments

Comments
 (0)