Remove temporary test tracing guards

This commit is contained in:
Lucas Soriano del Pino 2020-11-02 17:44:53 +11:00 committed by rishflab
parent a26890001b
commit 823add218e
3 changed files with 0 additions and 26 deletions

View File

@ -7,17 +7,9 @@ mod e2e_test {
use std::sync::Arc; use std::sync::Arc;
use swap::{alice, bob, network::transport::build}; use swap::{alice, bob, network::transport::build};
use testcontainers::clients::Cli; use testcontainers::clients::Cli;
use tracing_subscriber::util::SubscriberInitExt;
#[tokio::test] #[tokio::test]
async fn swap() { 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" let alice_multiaddr: Multiaddr = "/ip4/127.0.0.1/tcp/9876"
.parse() .parse()
.expect("failed to parse Alice's address"); .expect("failed to parse Alice's address");

View File

@ -13,7 +13,6 @@ mod tor_test {
onion::TorSecretKeyV3, onion::TorSecretKeyV3,
utils::{run_tor, AutoKillChild}, utils::{run_tor, AutoKillChild},
}; };
use tracing_subscriber::util::SubscriberInitExt;
async fn hello_world( async fn hello_world(
_req: hyper::Request<hyper::Body>, _req: hyper::Request<hyper::Body>,
@ -76,10 +75,6 @@ mod tor_test {
#[tokio::test] #[tokio::test]
async fn test_tor_control_port() -> Result<()> { async fn test_tor_control_port() -> Result<()> {
let _guard = tracing_subscriber::fmt()
.with_env_filter("info")
.set_default();
// start tmp tor // start tmp tor
let (_child, control_port, proxy_port, _tmp_torrc) = run_tmp_tor()?; let (_child, control_port, proxy_port, _tmp_torrc) = run_tmp_tor()?;

View File

@ -13,7 +13,6 @@ mod tests {
use rand::rngs::OsRng; use rand::rngs::OsRng;
use std::convert::TryInto; use std::convert::TryInto;
use testcontainers::clients::Cli; use testcontainers::clients::Cli;
use tracing_subscriber::util::SubscriberInitExt;
use xmr_btc::{ use xmr_btc::{
alice, bitcoin, alice, bitcoin,
bitcoin::{Amount, TX_FEE}, bitcoin::{Amount, TX_FEE},
@ -22,10 +21,6 @@ mod tests {
#[tokio::test] #[tokio::test]
async fn happy_path() { async fn happy_path() {
let _guard = tracing_subscriber::fmt()
.with_env_filter("info")
.set_default();
let cli = Cli::default(); let cli = Cli::default();
let (monero, _container) = Monero::new(&cli, Some("hp".to_string()), vec![ let (monero, _container) = Monero::new(&cli, Some("hp".to_string()), vec![
"alice".to_string(), "alice".to_string(),
@ -101,10 +96,6 @@ mod tests {
#[tokio::test] #[tokio::test]
async fn both_refund() { async fn both_refund() {
let _guard = tracing_subscriber::fmt()
.with_env_filter("info")
.set_default();
let cli = Cli::default(); let cli = Cli::default();
let (monero, _container) = Monero::new(&cli, Some("br".to_string()), vec![ let (monero, _container) = Monero::new(&cli, Some("br".to_string()), vec![
"alice".to_string(), "alice".to_string(),
@ -182,10 +173,6 @@ mod tests {
#[tokio::test] #[tokio::test]
async fn alice_punishes() { async fn alice_punishes() {
let _guard = tracing_subscriber::fmt()
.with_env_filter("info")
.set_default();
let cli = Cli::default(); let cli = Cli::default();
let (monero, _containers) = Monero::new(&cli, Some("ap".to_string()), vec![ let (monero, _containers) = Monero::new(&cli, Some("ap".to_string()), vec![
"alice".to_string(), "alice".to_string(),