Skip to content

Commit 2fa1641

Browse files
committed
property 9 and property 8 were duplicates
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
1 parent 80d5c04 commit 2fa1641

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

  • lading/src/generator/file_gen/logrotate_fs

‎lading/src/generator/file_gen/logrotate_fs/model.rs‎

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,26 +1209,7 @@ mod test {
12091209
}
12101210
}
12111211

1212-
// // Property 8: max(bytes_written) <= max_bytes_per_file + bytes_per_second
1213-
// //
1214-
// // If just prior to a rollover the file is within bytes_per_second of
1215-
// // max_bytes_per_file on the next tick that the rollover happens the
1216-
// // file will be larger than max_bytes_per_file but to a limited degree.
1217-
// for node in state.nodes.values() {
1218-
// if let Node::File { file } = node {
1219-
// if file.unlinked {
1220-
// continue;
1221-
// }
1222-
// let max_size = state.max_bytes_per_file + file.bytes_per_tick;
1223-
// assert!(
1224-
// file.size() <= max_size,
1225-
// "File size {sz} exceeds max allowed size {max_size}",
1226-
// sz = file.size()
1227-
// );
1228-
// }
1229-
// }
1230-
1231-
// Property 9: Rotated files have bytes_written within acceptable range
1212+
// Property 8: Rotated files have bytes_written within acceptable range
12321213
//
12331214
// For a rotated file (read_only == true), bytes_written should be
12341215
// within (max_bytes_per_file - bytes_per_tick) <= bytes_written <

0 commit comments

Comments
 (0)