From 72f4c69847b1c8ec7ffe6d6d4b61ce72c978cbb6 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Mon, 29 Jul 2024 10:41:11 +0100 Subject: [PATCH] fix: [#580] E2E tests failing with MySQL --- contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh | 2 +- tests/environments/shared.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh b/contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh index 8ef3b43f..046862d5 100755 --- a/contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh +++ b/contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh @@ -41,7 +41,7 @@ docker ps # Run E2E tests with shared app instance TORRUST_INDEX_E2E_SHARED=true \ TORRUST_INDEX_CONFIG_TOML_PATH="./share/default/config/index.public.e2e.container.mysql.toml" \ - TORRUST_INDEX_E2E_DB_CONNECT_URL="mysql://root:root_secret_password@localhost:3306/torrust_index_e2e_testing" \ + TORRUST_INDEX_E2E_DB_CONNECT_URL="mysql://root:root_secret_password@127.0.0.1:3306/torrust_index_e2e_testing" \ cargo test || { ./contrib/dev-tools/container/e2e/mysql/e2e-env-down.sh diff --git a/tests/environments/shared.rs b/tests/environments/shared.rs index 30ad1193..936cf375 100644 --- a/tests/environments/shared.rs +++ b/tests/environments/shared.rs @@ -36,7 +36,7 @@ impl TestEnv { impl Default for TestEnv { fn default() -> Self { Self { - authority: "localhost:3001".to_string(), + authority: "127.0.0.1:3001".to_string(), } } }