Skip to content

Commit

Permalink
refactor: disable logging for testing
Browse files Browse the repository at this point in the history
The log has some errors we need to fix. See:

#176
  • Loading branch information
josecelano committed Jun 8, 2023
1 parent 0264e5c commit 68e2132
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/environments/isolated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 68e2132

Please sign in to comment.