fix(vfs): V-02 — missing chunk within expected file size causes error instead of silent truncation
This commit is contained in:
@@ -104,6 +104,7 @@ fn test_carrier_protection_in_storage_and_sync() {
|
||||
// 4. delete_orphans_in_vault mit leerem lokalem Pfad-Set:
|
||||
// Der Carrier darf unter keinen Umständen gelöscht werden!
|
||||
let local_paths = HashSet::new();
|
||||
let excluded_paths = HashSet::new();
|
||||
let mut stats = SyncStats::default();
|
||||
let orphan_res = delete_orphans_in_vault(
|
||||
&db,
|
||||
@@ -112,6 +113,9 @@ fn test_carrier_protection_in_storage_and_sync() {
|
||||
1, // Root-Knoten
|
||||
"",
|
||||
&local_paths,
|
||||
&excluded_paths,
|
||||
&[],
|
||||
false, // delete_excluded: false
|
||||
false, // kein dry_run
|
||||
true, // quiet
|
||||
&mut stats,
|
||||
@@ -161,6 +165,7 @@ fn test_carrier_protection_in_storage_and_sync() {
|
||||
let sync_options = sanctum::sync::SyncOptions {
|
||||
direction: sanctum::sync::SyncDirection::Pull,
|
||||
delete: false,
|
||||
delete_excluded: false,
|
||||
dry_run: false,
|
||||
checksum: false,
|
||||
exclude_patterns: Vec::new(),
|
||||
|
||||
Reference in New Issue
Block a user