From fa1bf9a116eefc5e8341eefa983cb7c8fa2b4c80 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Mon, 17 Aug 2020 20:00:47 -0600 Subject: [PATCH] Fix tests --- src/main.rs | 5 +++-- src/section_runner.rs | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 364610b..00fc858 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,7 @@ use color_eyre::eyre::Result; use rusqlite::Connection as DbConnection; use rusqlite::NO_PARAMS; use tracing::info; +use tracing_subscriber::EnvFilter; mod db; mod migrations; @@ -35,8 +36,8 @@ fn main() -> Result<()> { tracing_subscriber::fmt() .with_ansi(true) .with_env_filter( - tracing_subscriber::EnvFilter::try_from_default_env() - .unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("info")), + EnvFilter::try_from_default_env() + .unwrap_or_else(|_| EnvFilter::new("info")), ) .init(); color_eyre::install()?; diff --git a/src/section_runner.rs b/src/section_runner.rs index 557a1e3..19715dd 100644 --- a/src/section_runner.rs +++ b/src/section_runner.rs @@ -339,9 +339,6 @@ mod test { #[tokio::test] async fn test_cancel_run() { - env_logger::builder() - .filter_level(log::LevelFilter::Trace) - .init(); let (sections, interface) = make_sections_and_interface(); let mut runner = SectionRunner::new(interface.clone());