Skip to content

Commit

Permalink
indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Brian L. Troutwine <[email protected]>
  • Loading branch information
blt committed Nov 13, 2024
1 parent ce9149d commit 1247f50
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions lading/src/generator/file_gen/logrotate_fs/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1268,10 +1268,8 @@ mod test {
if file.unlinked && file.read_only {
if file.open_handles > 0 {
// Should remain in state.nodes
assert!(
state.nodes.contains_key(&inode),
"Unlinked, read-only file with open handles should remain in state.nodes"
);
assert!(state.nodes.contains_key(&inode),
"Unlinked, read-only file with open handles should remain in state.nodes");

// There should be valid file handles pointing to this inode
let valid_handles: Vec<_> = state
Expand All @@ -1286,16 +1284,12 @@ mod test {
})
.collect();

assert!(
!valid_handles.is_empty(),
"Unlinked, read-only file with open handles should have valid file handles"
);
assert!(!valid_handles.is_empty(),
"Unlinked, read-only file with open handles should have valid file handles");
} else {
// Should be removed from state.nodes after GC
assert!(
!state.nodes.contains_key(&inode),
"Unlinked, read-only file with zero open handles should be removed from state.nodes"
);
assert!(!state.nodes.contains_key(&inode),
"Unlinked, read-only file with zero open handles should be removed from state.nodes");
}
}
}
Expand Down

0 comments on commit 1247f50

Please sign in to comment.