chore: add logging to fs tests
This commit is contained in:
parent
afbd3b97ef
commit
38e6d6b6df
1 changed files with 13 additions and 0 deletions
|
@ -472,13 +472,26 @@ mod test {
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use tempfile::TempDir;
|
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]
|
#[test]
|
||||||
fn test_rescan_quick() {
|
fn test_rescan_quick() {
|
||||||
|
initialize();
|
||||||
_test_rescan(true)
|
_test_rescan(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_rescan_full() {
|
fn test_rescan_full() {
|
||||||
|
initialize();
|
||||||
_test_rescan(false)
|
_test_rescan(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue