chore: add logging to fs tests

feat/vaults
Tomáš Mládek 2022-07-31 22:48:31 +02:00
parent afbd3b97ef
commit 38e6d6b6df
1 changed files with 13 additions and 0 deletions

View File

@ -472,13 +472,26 @@ mod test {
use std::io::Write;
use tempfile::TempDir;
use std::sync::Once;
static INIT: Once = Once::new();
pub fn initialize() {
INIT.call_once(|| {
let env = env_logger::Env::default().filter_or(env_logger::DEFAULT_FILTER_ENV, "info");
env_logger::init_from_env(env);
});
}
#[test]
fn test_rescan_quick() {
initialize();
_test_rescan(true)
}
#[test]
fn test_rescan_full() {
initialize();
_test_rescan(false)
}