From 68e2132092fcbbbc904c8d6b7d7b4be6b52cae90 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Thu, 8 Jun 2023 16:45:07 +0100 Subject: [PATCH] refactor: disable logging for testing The log has some errors we need to fix. See: https://github.com/torrust/torrust-index-backend/issues/176 --- tests/environments/isolated.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/environments/isolated.rs b/tests/environments/isolated.rs index 411a3149..a4b1ae45 100644 --- a/tests/environments/isolated.rs +++ b/tests/environments/isolated.rs @@ -70,7 +70,10 @@ impl Default for TestEnv { /// Provides a configuration with ephemeral data for testing. fn ephemeral(temp_dir: &TempDir) -> config::TorrustBackend { - let mut configuration = config::TorrustBackend::default(); + let mut configuration = config::TorrustBackend { + log_level: Some("off".to_owned()), // Change to `debug` for tests debugging + ..config::TorrustBackend::default() + }; // Ephemeral API port configuration.net.port = FREE_PORT;