diff --git a/swap/tests/e2e.rs b/swap/tests/e2e.rs index 8f2d031f..90590e69 100644 --- a/swap/tests/e2e.rs +++ b/swap/tests/e2e.rs @@ -7,17 +7,9 @@ mod e2e_test { use std::sync::Arc; use swap::{alice, bob, network::transport::build}; use testcontainers::clients::Cli; - use tracing_subscriber::util::SubscriberInitExt; #[tokio::test] async fn swap() { - let _guard = tracing_subscriber::fmt() - .with_env_filter( - "swap=debug,xmr_btc=debug,hyper=off,reqwest=off,monero_harness=info,testcontainers=info,libp2p=debug", - ) - .with_ansi(false) - .set_default(); - let alice_multiaddr: Multiaddr = "/ip4/127.0.0.1/tcp/9876" .parse() .expect("failed to parse Alice's address"); diff --git a/swap/tests/tor.rs b/swap/tests/tor.rs index 1a0a6de9..7fd3537f 100644 --- a/swap/tests/tor.rs +++ b/swap/tests/tor.rs @@ -13,7 +13,6 @@ mod tor_test { onion::TorSecretKeyV3, utils::{run_tor, AutoKillChild}, }; - use tracing_subscriber::util::SubscriberInitExt; async fn hello_world( _req: hyper::Request, @@ -76,10 +75,6 @@ mod tor_test { #[tokio::test] async fn test_tor_control_port() -> Result<()> { - let _guard = tracing_subscriber::fmt() - .with_env_filter("info") - .set_default(); - // start tmp tor let (_child, control_port, proxy_port, _tmp_torrc) = run_tmp_tor()?; diff --git a/xmr-btc/tests/e2e.rs b/xmr-btc/tests/e2e.rs index 4c93bd47..373c759e 100644 --- a/xmr-btc/tests/e2e.rs +++ b/xmr-btc/tests/e2e.rs @@ -13,7 +13,6 @@ mod tests { use rand::rngs::OsRng; use std::convert::TryInto; use testcontainers::clients::Cli; - use tracing_subscriber::util::SubscriberInitExt; use xmr_btc::{ alice, bitcoin, bitcoin::{Amount, TX_FEE}, @@ -22,10 +21,6 @@ mod tests { #[tokio::test] async fn happy_path() { - let _guard = tracing_subscriber::fmt() - .with_env_filter("info") - .set_default(); - let cli = Cli::default(); let (monero, _container) = Monero::new(&cli, Some("hp".to_string()), vec![ "alice".to_string(), @@ -101,10 +96,6 @@ mod tests { #[tokio::test] async fn both_refund() { - let _guard = tracing_subscriber::fmt() - .with_env_filter("info") - .set_default(); - let cli = Cli::default(); let (monero, _container) = Monero::new(&cli, Some("br".to_string()), vec![ "alice".to_string(), @@ -182,10 +173,6 @@ mod tests { #[tokio::test] async fn alice_punishes() { - let _guard = tracing_subscriber::fmt() - .with_env_filter("info") - .set_default(); - let cli = Cli::default(); let (monero, _containers) = Monero::new(&cli, Some("ap".to_string()), vec![ "alice".to_string(),