Browse Source

Fix tests

drone-volume-cache
Alex Mikhalev 4 years ago
parent
commit
fa1bf9a116
  1. 5
      src/main.rs
  2. 3
      src/section_runner.rs

5
src/main.rs

@ -4,6 +4,7 @@ use color_eyre::eyre::Result;
use rusqlite::Connection as DbConnection; use rusqlite::Connection as DbConnection;
use rusqlite::NO_PARAMS; use rusqlite::NO_PARAMS;
use tracing::info; use tracing::info;
use tracing_subscriber::EnvFilter;
mod db; mod db;
mod migrations; mod migrations;
@ -35,8 +36,8 @@ fn main() -> Result<()> {
tracing_subscriber::fmt() tracing_subscriber::fmt()
.with_ansi(true) .with_ansi(true)
.with_env_filter( .with_env_filter(
tracing_subscriber::EnvFilter::try_from_default_env() EnvFilter::try_from_default_env()
.unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("info")), .unwrap_or_else(|_| EnvFilter::new("info")),
) )
.init(); .init();
color_eyre::install()?; color_eyre::install()?;

3
src/section_runner.rs

@ -339,9 +339,6 @@ mod test {
#[tokio::test] #[tokio::test]
async fn test_cancel_run() { async fn test_cancel_run() {
env_logger::builder()
.filter_level(log::LevelFilter::Trace)
.init();
let (sections, interface) = make_sections_and_interface(); let (sections, interface) = make_sections_and_interface();
let mut runner = SectionRunner::new(interface.clone()); let mut runner = SectionRunner::new(interface.clone());

Loading…
Cancel
Save