diff --git a/lib/tests/test_storage_new_gcs.rs b/lib/tests/test_storage_new_gcs.rs index 1f77f633..b39329d0 100644 --- a/lib/tests/test_storage_new_gcs.rs +++ b/lib/tests/test_storage_new_gcs.rs @@ -189,7 +189,6 @@ fn test_storage_new_gcs() -> Result<()> { &format!("ls --recursive s3://{bucket_name}"), &format!("| rg {storage_prefix} | rg 0.bin"), ); - watch!(file_list_after); // The file should be in: // - storage_dir/REPO_ID/b3/ABCD...123/0.bin @@ -208,8 +207,6 @@ fn test_storage_new_gcs() -> Result<()> { let fetch_result = x(&["file", "bring", "--no-recheck", "--from", "gcs-storage"])?; - watch!(fetch_result); - let n_local_files_after_fetch = jwalk::WalkDir::new(&cache_dir) .into_iter() .filter(|f| { @@ -226,7 +223,6 @@ fn test_storage_new_gcs() -> Result<()> { fs::remove_file(the_file)?; let pull_result = x(&["file", "bring", "--from", "gcs-storage"])?; - watch!(pull_result); let n_local_files_after_pull = jwalk::WalkDir::new(&cache_dir) .into_iter() @@ -248,7 +244,6 @@ fn test_storage_new_gcs() -> Result<()> { env::remove_var("GCS_SECRET_ACCESS_KEY"); let pull_result_2 = x(&["file", "bring", "--from", "gcs-storage"])?; - watch!(pull_result_2); clean_up(&xvc_root) } diff --git a/lib/tests/test_storage_new_generic_fs.rs b/lib/tests/test_storage_new_generic_fs.rs index 56845728..6876b968 100644 --- a/lib/tests/test_storage_new_generic_fs.rs +++ b/lib/tests/test_storage_new_generic_fs.rs @@ -59,9 +59,6 @@ fn test_storage_new_generic_fs() -> Result<()> { let storage_dir = PathBuf::from(temp_directory).join(storage_dir_name); - watch!(storage_dir); - watch!(out); - assert!(storage_dir.exists()); assert!(storage_dir.join(XVC_STORAGE_GUID_FILENAME).exists()); @@ -69,7 +66,6 @@ fn test_storage_new_generic_fs() -> Result<()> { let the_file = "file-0000.bin"; let file_track_result = x(&["file", "track", the_file])?; - watch!(file_track_result); let n_storage_files_before = jwalk::WalkDir::new(&storage_dir) .into_iter() @@ -80,10 +76,7 @@ fn test_storage_new_generic_fs() -> Result<()> { }) .count(); - watch!(n_storage_files_before); - let push_result = x(&["file", "send", "--to", "generic-storage", the_file])?; - watch!(push_result); // The file should be in: // - storage_dir/REPO_ID/b3/ABCD...123/0.bin @@ -96,7 +89,6 @@ fn test_storage_new_generic_fs() -> Result<()> { .unwrap_or_else(|_| false) }) .count(); - watch!(n_storage_files_after); assert!( n_storage_files_before + 1 == n_storage_files_after, @@ -112,8 +104,6 @@ fn test_storage_new_generic_fs() -> Result<()> { let fetch_result = x(&["file", "bring", "--no-recheck", "--from", "generic-storage"])?; - watch!(fetch_result); - let n_local_files_after_fetch = jwalk::WalkDir::new(&cache_dir) .into_iter() .filter(|f| { @@ -130,7 +120,6 @@ fn test_storage_new_generic_fs() -> Result<()> { fs::remove_file(the_file)?; let pull_result = x(&["file", "bring", "--from", "generic-storage"])?; - watch!(pull_result); let n_local_files_after_pull = jwalk::WalkDir::new(&cache_dir) .into_iter() diff --git a/lib/tests/test_storage_new_generic_rsync.rs b/lib/tests/test_storage_new_generic_rsync.rs index 8eff19d3..ed26a59d 100644 --- a/lib/tests/test_storage_new_generic_rsync.rs +++ b/lib/tests/test_storage_new_generic_rsync.rs @@ -24,7 +24,6 @@ fn create_directory_hierarchy() -> Result { } fn sh(cmd: String) -> String { - watch!(cmd); Exec::shell(cmd).capture().unwrap().stdout_str() } @@ -71,19 +70,15 @@ fn test_storage_new_generic_rsync() -> Result<()> { "4", ])?; - watch!(out); - let storage_list = sh(format!( "ssh {url} 'ls -l {storage_dir_name}{XVC_STORAGE_GUID_FILENAME}'" )); - watch!(storage_list); assert!(!storage_list.is_empty()); let the_file = "file-0000.bin"; let file_track_result = x(&["file", "track", the_file])?; - watch!(file_track_result); let n_storage_files_before = jwalk::WalkDir::new(local_test_dir) .into_iter() @@ -94,10 +89,8 @@ fn test_storage_new_generic_rsync() -> Result<()> { }) .count(); let push_result = x(&["file", "send", "--to", "generic-storage", the_file])?; - watch!(push_result); let file_list = sh(format!("ssh {url} 'ls -1R {storage_dir_name} | grep bin'")); - watch!(file_list); // The file should be in: // - storage_dir/REPO_ID/b3/ABCD...123/0.bin @@ -118,8 +111,6 @@ fn test_storage_new_generic_rsync() -> Result<()> { let fetch_result = x(&["file", "bring", "--no-recheck", "--from", "generic-storage"])?; - watch!(fetch_result); - let n_local_files_after_fetch = jwalk::WalkDir::new(&cache_dir) .into_iter() .filter(|f| { @@ -136,7 +127,6 @@ fn test_storage_new_generic_rsync() -> Result<()> { fs::remove_file(the_file)?; let pull_result = x(&["file", "bring", "--from", "generic-storage"])?; - watch!(pull_result); let n_local_files_after_pull = jwalk::WalkDir::new(&cache_dir) .into_iter() diff --git a/lib/tests/test_storage_new_local.rs b/lib/tests/test_storage_new_local.rs index 17ac19dd..dcfb38db 100644 --- a/lib/tests/test_storage_new_local.rs +++ b/lib/tests/test_storage_new_local.rs @@ -12,7 +12,6 @@ use xvc_test_helper::generate_filled_file; fn create_directory_hierarchy() -> Result { let temp_dir: XvcRoot = run_in_temp_xvc_dir()?; - watch!(temp_dir); // for checking the content hash generate_filled_file(&temp_dir.join(&PathBuf::from("file-0000.bin")), 10000, 100); // create_directory_tree(&temp_dir, 10, 10)?; @@ -44,12 +43,10 @@ fn test_storage_new_local() -> Result<()> { ])?; assert!(storage_dir.join(XVC_STORAGE_GUID_FILENAME).exists()); - watch!(out); let the_file = "file-0000.bin"; let file_track_result = x(&["file", "track", the_file])?; - watch!(file_track_result); let n_storage_files_before = jwalk::WalkDir::new(&storage_dir) .into_iter() @@ -61,7 +58,6 @@ fn test_storage_new_local() -> Result<()> { .count(); let push_result = x(&["file", "send", "--to", "local-storage", the_file])?; - watch!(push_result); // The file should be in: // - storage_dir/REPO_ID/b3/ABCD...123/0.bin @@ -75,7 +71,6 @@ fn test_storage_new_local() -> Result<()> { }) .count(); - watch!(n_storage_files_after); assert!( n_storage_files_before + 1 == n_storage_files_after, "{} - {}", @@ -93,8 +88,6 @@ fn test_storage_new_local() -> Result<()> { let fetch_result = x(&["file", "bring", "--no-recheck", "--from", "local-storage"])?; - watch!(fetch_result); - let n_local_files_after_fetch = jwalk::WalkDir::new(&cache_dir) .into_iter() .filter(|f| { @@ -114,7 +107,6 @@ fn test_storage_new_local() -> Result<()> { fs::remove_file(the_file)?; let bring_result = x(&["file", "bring", "--from", "local-storage"])?; - watch!(bring_result); let n_local_files_after_pull = jwalk::WalkDir::new(&cache_dir) .into_iter() @@ -124,23 +116,17 @@ fn test_storage_new_local() -> Result<()> { .unwrap_or_else(|_| false) }) .count(); - watch!(n_local_files_after_pull); assert!(n_storage_files_after == n_local_files_after_pull); - watch!(the_file); let tree_result = sh("tree")?; - watch!(String::from_utf8(tree_result.stdout)); assert!(PathBuf::from(the_file).exists()); // When we reinit with the same storage path, it shouldn't update the GUID. // See https://github.com/iesahin/xvc/issues/123 let current_guid = fs::read_to_string(storage_dir.join(XVC_STORAGE_GUID_FILENAME))?; - watch!(current_guid); // We'll use a separate process to run the following tests. // Entity counter cannot be loaded to the same process twice. let another_xvc_root = assert_fs::TempDir::new()?; - watch!(another_xvc_root); let mut xvc = assert_cmd::cmd::Command::cargo_bin("xvc")?; - watch!(xvc); xvc.current_dir(&another_xvc_root); xvc.arg("init").assert(); xvc.args([ diff --git a/lib/tests/test_storage_new_minio.rs b/lib/tests/test_storage_new_minio.rs index 1bf4f175..c9327077 100644 --- a/lib/tests/test_storage_new_minio.rs +++ b/lib/tests/test_storage_new_minio.rs @@ -42,7 +42,6 @@ fn mc_config(alias: &str, endpoint: &str, access_key: &str, secret_key: &str) -> } fn sh(cmd: String) -> String { - watch!(cmd); Exec::shell(cmd).capture().unwrap().stdout_str() } @@ -95,16 +94,12 @@ fn test_storage_new_minio() -> Result<()> { region, ])?; - watch!(out); - let mc_bucket_list = mc("ls", &format!("| rg {bucket_name}")); - watch!(mc_bucket_list); assert!(!mc_bucket_list.is_empty()); let the_file = "file-0000.bin"; let file_track_result = x(&["file", "track", the_file])?; - watch!(file_track_result); let n_storage_files_before = jwalk::WalkDir::new(local_test_dir) .into_iter() @@ -115,10 +110,8 @@ fn test_storage_new_minio() -> Result<()> { }) .count(); let push_result = x(&["file", "send", "--to", "minio-storage", the_file])?; - watch!(push_result); let file_list = mc("ls -r ", &format!("| rg {bucket_name}/{storage_prefix}")); - watch!(file_list); // The file should be in: // - storage_dir/REPO_ID/b3/ABCD...123/0.bin @@ -141,12 +134,9 @@ fn test_storage_new_minio() -> Result<()> { let fetch_result = x(&["file", "bring", "--no-recheck", "--from", "minio-storage"])?; - watch!(fetch_result); - let n_local_files_after_fetch = jwalk::WalkDir::new(&cache_dir) .into_iter() .filter(|f| { - watch!(f); f.as_ref() .map(|f| f.file_type().is_file()) .unwrap_or_else(|_| false) @@ -166,7 +156,6 @@ fn test_storage_new_minio() -> Result<()> { fs::remove_file(the_file)?; let pull_result = x(&["file", "bring", "--from", "minio-storage"])?; - watch!(pull_result); let n_local_files_after_pull = jwalk::WalkDir::new(&cache_dir) .into_iter() @@ -193,7 +182,6 @@ fn test_storage_new_minio() -> Result<()> { env::remove_var("MINIO_SECRET_ACCESS_KEY"); let pull_result_2 = x(&["file", "bring", "--from", "minio-storage"])?; - watch!(pull_result_2); clean_up(&xvc_root) } diff --git a/lib/tests/test_storage_new_r2.rs b/lib/tests/test_storage_new_r2.rs index bb852da6..6aa16840 100644 --- a/lib/tests/test_storage_new_r2.rs +++ b/lib/tests/test_storage_new_r2.rs @@ -126,7 +126,6 @@ fn create_directory_hierarchy() -> Result { } fn sh(cmd: String) -> String { - watch!(cmd); Exec::shell(cmd).capture().unwrap().stdout_str() } @@ -148,7 +147,6 @@ fn test_storage_new_r2() -> Result<()> { let account_id = account_id.trim(); let config_file_name = write_s3cmd_config(account_id, access_key, secret_key)?; - watch!(config_file_name); let s3cmd = |cmd: &str, append: &str| -> String { let sh_cmd = format!("s3cmd --no-check-md5 --config {config_file_name} {cmd} {append}"); @@ -173,12 +171,10 @@ fn test_storage_new_r2() -> Result<()> { account_id, ])?; - watch!(out); let s3_bucket_list = s3cmd( &format!("ls --recursive 's3://{bucket_name}'"), &format!("| rg {storage_prefix} | rg {XVC_STORAGE_GUID_FILENAME}"), ); - watch!(s3_bucket_list); assert!(!s3_bucket_list.is_empty()); let the_file = "file-0000.bin"; @@ -191,16 +187,13 @@ fn test_storage_new_r2() -> Result<()> { &format!("ls --recursive s3://{bucket_name}"), &format!("| rg {storage_prefix} | rg 0.bin"), ); - watch!(file_list_before); let n_storage_files_before = file_list_before.lines().count(); let push_result = x(&["file", "send", "--to", "r2-storage", the_file])?; - watch!(push_result); let file_list_after = s3cmd( &format!("ls --recursive s3://{bucket_name}"), &format!("| rg {storage_prefix} | rg 0.bin"), ); - watch!(file_list_after); // The file should be in: // - storage_dir/REPO_ID/b3/ABCD...123/0.bin @@ -219,8 +212,6 @@ fn test_storage_new_r2() -> Result<()> { let fetch_result = x(&["file", "bring", "--no-recheck", "--from", "r2-storage"])?; - watch!(fetch_result); - let n_local_files_after_fetch = jwalk::WalkDir::new(&cache_dir) .into_iter() .filter(|f| { @@ -237,7 +228,6 @@ fn test_storage_new_r2() -> Result<()> { fs::remove_file(the_file)?; let pull_result = x(&["file", "bring", "--from", "r2-storage"])?; - watch!(pull_result); let n_local_files_after_pull = jwalk::WalkDir::new(&cache_dir) .into_iter() @@ -259,7 +249,6 @@ fn test_storage_new_r2() -> Result<()> { env::remove_var("R2_SECRET_ACCESS_KEY"); let pull_result_2 = x(&["file", "bring", "--from", "r2-storage"])?; - watch!(pull_result_2); clean_up(&xvc_root) } diff --git a/lib/tests/test_storage_new_rsync.rs b/lib/tests/test_storage_new_rsync.rs index 1412fdd9..32ad630a 100644 --- a/lib/tests/test_storage_new_rsync.rs +++ b/lib/tests/test_storage_new_rsync.rs @@ -24,7 +24,6 @@ fn create_directory_hierarchy() -> Result { } fn sh(cmd: String) -> String { - watch!(cmd); Exec::shell(cmd).capture().unwrap().stdout_str() } @@ -64,19 +63,15 @@ fn test_storage_new_rsync() -> Result<()> { &storage_dir_name, ])?; - watch!(out); - let storage_list = sh(format!( "ssh {url} 'ls -l {storage_dir_name}{XVC_STORAGE_GUID_FILENAME}'" )); - watch!(storage_list); assert!(!storage_list.is_empty()); let the_file = "file-0000.bin"; let file_track_result = x(&["file", "track", the_file])?; - watch!(file_track_result); let n_storage_files_before = jwalk::WalkDir::new(local_test_dir) .into_iter() @@ -87,10 +82,8 @@ fn test_storage_new_rsync() -> Result<()> { }) .count(); let push_result = x(&["file", "send", "--to", "rsync-storage", the_file])?; - watch!(push_result); let file_list = sh(format!("ssh {url} 'ls -1R {storage_dir_name} | grep bin'")); - watch!(file_list); // The file should be in: // - storage_dir/REPO_ID/b3/ABCD...123/0.bin @@ -111,16 +104,11 @@ fn test_storage_new_rsync() -> Result<()> { let fetch_result = x(&["file", "bring", "--no-recheck", "--from", "rsync-storage"])?; - watch!(fetch_result); - let n_local_files_after_fetch = jwalk::WalkDir::new(&cache_dir) .into_iter() .filter(|f| { f.as_ref() - .map(|f| { - watch!(f); - f.file_type().is_file() - }) + .map(|f| f.file_type().is_file()) .unwrap_or_else(|_| false) }) .count(); @@ -132,7 +120,6 @@ fn test_storage_new_rsync() -> Result<()> { fs::remove_file(the_file)?; let pull_result = x(&["file", "bring", "--from", "rsync-storage"])?; - watch!(pull_result); let n_local_files_after_pull = jwalk::WalkDir::new(&cache_dir) .into_iter() diff --git a/lib/tests/test_storage_new_s3.rs b/lib/tests/test_storage_new_s3.rs index d42725b0..a9532858 100644 --- a/lib/tests/test_storage_new_s3.rs +++ b/lib/tests/test_storage_new_s3.rs @@ -126,7 +126,6 @@ fn create_directory_hierarchy() -> Result { } fn sh(cmd: String) -> String { - watch!(cmd); Exec::shell(cmd).capture().unwrap().stdout_str() } @@ -143,7 +142,6 @@ fn test_storage_new_s3() -> Result<()> { let region = "eu-central-1"; let config_file_name = write_s3cmd_config(region, &access_key, &secret_key)?; - watch!(config_file_name); let s3cmd = |cmd: &str, append: &str| -> String { let sh_cmd = format!("s3cmd --config {config_file_name} {cmd} {append}"); @@ -155,7 +153,6 @@ fn test_storage_new_s3() -> Result<()> { }; let aws_create_bucket = s3cmd(&format!("mb s3://{bucket_name}"), ""); - watch!(aws_create_bucket); // let out = x(&[ "storage", @@ -171,19 +168,15 @@ fn test_storage_new_s3() -> Result<()> { region, ])?; - watch!(out); - let s3_bucket_list = s3cmd( &format!("ls --recursive 's3://{bucket_name}/'"), &format!(" | rg {storage_prefix} | rg {XVC_STORAGE_GUID_FILENAME}"), ); - watch!(s3_bucket_list); assert!(!s3_bucket_list.is_empty()); let the_file = "file-0000.bin"; let file_track_result = x(&["file", "track", the_file])?; - watch!(file_track_result); let cache_dir = xvc_root.xvc_dir().join("b3"); @@ -191,18 +184,14 @@ fn test_storage_new_s3() -> Result<()> { &format!("ls --recursive {bucket_name}"), &format!(" | rg {storage_prefix} | rg 0.bin"), ); - watch!(file_list_before); let n_storage_files_before = file_list_before.lines().count(); let push_result = x(&["file", "send", "--to", "s3-storage", the_file])?; - watch!(push_result); let file_list_after = s3cmd( &format!("ls --recursive s3://{bucket_name}"), &format!("| rg {storage_prefix} | rg 0.bin"), ); - watch!(file_list_after); - // The file should be in: // - storage_dir/REPO_ID/b3/ABCD...123/0.bin @@ -220,8 +209,6 @@ fn test_storage_new_s3() -> Result<()> { let fetch_result = x(&["file", "bring", "--no-recheck", "--from", "s3-storage"])?; - watch!(fetch_result); - let n_local_files_after_fetch = jwalk::WalkDir::new(&cache_dir) .into_iter() .filter(|f| { @@ -238,7 +225,6 @@ fn test_storage_new_s3() -> Result<()> { fs::remove_file(the_file)?; let pull_result = x(&["file", "bring", "--from", "s3-storage"])?; - watch!(pull_result); let n_local_files_after_pull = jwalk::WalkDir::new(&cache_dir) .into_iter() @@ -260,7 +246,6 @@ fn test_storage_new_s3() -> Result<()> { env::remove_var("AWS_SECRET_ACCESS_KEY"); let pull_result_2 = x(&["file", "bring", "--from", "s3-storage"])?; - watch!(pull_result_2); clean_up(&xvc_root) } diff --git a/lib/tests/test_storage_new_wasabi.rs b/lib/tests/test_storage_new_wasabi.rs index 154e0ea5..ece0de26 100644 --- a/lib/tests/test_storage_new_wasabi.rs +++ b/lib/tests/test_storage_new_wasabi.rs @@ -128,7 +128,6 @@ fn create_directory_hierarchy() -> Result { } fn sh(cmd: String) -> String { - watch!(cmd); Exec::shell(cmd).capture().unwrap().stdout_str() } @@ -145,7 +144,6 @@ fn test_storage_new_wasabi() -> Result<()> { let endpoint = "s3.wasabisys.com"; let config_file_name = write_s3cmd_config(&access_key, &secret_key)?; - watch!(config_file_name); let s3cmd = |cmd: &str, append: &str| -> String { let sh_cmd = format!("s3cmd --config {config_file_name} {cmd} {append}"); @@ -170,18 +168,15 @@ fn test_storage_new_wasabi() -> Result<()> { endpoint, ])?; - watch!(out); let s3_bucket_list = s3cmd( &format!("ls --recursive 's3://{bucket_name}/'"), &format!("| rg {storage_prefix} | rg {XVC_STORAGE_GUID_FILENAME}"), ); - watch!(s3_bucket_list); assert!(!s3_bucket_list.is_empty()); let the_file = "file-0000.bin"; let file_track_result = x(&["file", "track", the_file])?; - watch!(file_track_result); let cache_dir = xvc_root.xvc_dir().join("b3"); @@ -189,16 +184,13 @@ fn test_storage_new_wasabi() -> Result<()> { &format!("ls --recursive s3://{bucket_name}"), &format!("| rg {storage_prefix} | rg 0.bin"), ); - watch!(file_list_before); let n_storage_files_before = file_list_before.lines().count(); let push_result = x(&["file", "send", "--to", "wasabi-storage", the_file])?; - watch!(push_result); let file_list_after = s3cmd( &format!("ls --recursive s3://{bucket_name}"), &format!("| rg {storage_prefix} | rg 0.bin"), ); - watch!(file_list_after); // The file should be in: // - storage_dir/REPO_ID/b3/ABCD...123/0.bin @@ -217,8 +209,6 @@ fn test_storage_new_wasabi() -> Result<()> { let fetch_result = x(&["file", "bring", "--no-recheck", "--from", "wasabi-storage"])?; - watch!(fetch_result); - let n_local_files_after_fetch = jwalk::WalkDir::new(&cache_dir) .into_iter() .filter(|f| { @@ -235,7 +225,6 @@ fn test_storage_new_wasabi() -> Result<()> { fs::remove_file(the_file)?; let pull_result = x(&["file", "bring", "--from", "wasabi-storage"])?; - watch!(pull_result); let n_local_files_after_pull = jwalk::WalkDir::new(&cache_dir) .into_iter() @@ -256,7 +245,6 @@ fn test_storage_new_wasabi() -> Result<()> { env::remove_var("WASABI_SECRET_ACCESS_KEY"); let pull_result_2 = x(&["file", "bring", "--from", "wasabi-storage"])?; - watch!(pull_result_2); clean_up(&xvc_root) } diff --git a/lib/tests/test_walker_parallel.rs b/lib/tests/test_walker_parallel.rs index 418752a0..01caef7a 100644 --- a/lib/tests/test_walker_parallel.rs +++ b/lib/tests/test_walker_parallel.rs @@ -46,7 +46,6 @@ fn new_dir_with_ignores( ) -> Result { let patterns = create_patterns(root, dir, initial_patterns); let initialized = IgnoreRules::empty(&PathBuf::from(root), Some(".gitignore")); - watch!(patterns); initialized.add_patterns(patterns).unwrap(); Ok(initialized) } @@ -68,8 +67,6 @@ fn create_patterns(root: &str, dir: Option<&str>, patterns: &str) -> Vec it contains "dir-0002/file-0001.bin" ; "t3572817176" )] #[test_case("", "*.bin\n!dir-0002/**" => it contains "dir-0002/file-0001.bin" ; "t7772817176" )] fn test_walk_parallel(ignore_src: &str, ignore_content: &str) -> Vec { - watch!(ignore_src); - watch!(ignore_content); test_logging(LevelFilter::Trace); let root = create_directory_hierarchy(true).unwrap(); let (path_sender, path_receiver) = crossbeam_channel::unbounded(); @@ -100,6 +97,5 @@ fn test_walk_parallel(ignore_src: &str, ignore_content: &str) -> Vec { Err(_) => None, }) .collect(); - watch!(paths); paths } diff --git a/lib/tests/test_walker_serial.rs b/lib/tests/test_walker_serial.rs index 211fcee0..a944198a 100644 --- a/lib/tests/test_walker_serial.rs +++ b/lib/tests/test_walker_serial.rs @@ -63,10 +63,6 @@ fn test_walk_serial(ignore_src: &str, ignore_content: &str) -> Vec { }; let (output_sender, output_receiver) = crossbeam_channel::unbounded(); let (res_paths, ignore_rules) = walk_serial(&output_sender, "", &root, &walk_options).unwrap(); - watch!(ignore_rules.ignore_patterns.read().unwrap()); - watch!(ignore_rules.whitelist_patterns.read().unwrap()); - watch!(output_receiver); - watch!(res_paths); fs::remove_dir_all(&root).unwrap(); let out_paths = res_paths .iter() @@ -76,6 +72,5 @@ fn test_walk_serial(ignore_src: &str, ignore_content: &str) -> Vec { p.strip_prefix(&root.to_string()).unwrap_or(&p).to_owned() }) .collect(); - watch!(out_paths); out_paths }