diff --git a/crates/ethereum/cli/src/interface.rs b/crates/ethereum/cli/src/interface.rs index f91fad41aa3..d647c76e0a4 100644 --- a/crates/ethereum/cli/src/interface.rs +++ b/crates/ethereum/cli/src/interface.rs @@ -491,7 +491,6 @@ mod tests { fn parse_env_filter_directives() { let temp_dir = tempfile::tempdir().unwrap(); - unsafe { std::env::set_var("RUST_LOG", "info,evm=debug") }; let reth = Cli::try_parse_args_from([ "reth", "init", diff --git a/crates/net/discv5/src/lib.rs b/crates/net/discv5/src/lib.rs index fabed02f749..2b5a1432057 100644 --- a/crates/net/discv5/src/lib.rs +++ b/crates/net/discv5/src/lib.rs @@ -698,8 +698,6 @@ mod test { use ::enr::{CombinedKey, EnrKey}; use rand_08::thread_rng; use reth_chainspec::MAINNET; - use reth_tracing::init_test_tracing; - use std::env; use tracing::trace; fn discv5_noop() -> Discv5 { @@ -937,11 +935,6 @@ mod test { #[test] fn get_fork_id_with_different_network_stack_ids() { - unsafe { - env::set_var("RUST_LOG", "net::discv5=trace"); - } - init_test_tracing(); - let fork_id = MAINNET.latest_fork_id(); let sk = SecretKey::new(&mut thread_rng());