Skip to content

Commit 6d9b6d7

Browse files
committed
fmt
Signed-off-by: tison <wander4096@gmail.com>
1 parent f68545a commit 6d9b6d7

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

appenders/file/tests/global_file_limit.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
//! Ensure max_log_files limits the total number of log files across multiple date patterns.
22
3-
use logforth_append_file::FileBuilder;
4-
use logforth_core::Append;
5-
use logforth_core::record::Record;
63
use std::fs;
74
use std::num::NonZeroUsize;
85
use std::path::Path;
96
use std::thread;
107
use std::time::Duration;
8+
9+
use logforth_append_file::FileBuilder;
10+
use logforth_core::Append;
11+
use logforth_core::record::Record;
1112
use tempfile::TempDir;
1213

1314
#[test]
@@ -77,7 +78,8 @@ fn test_file_limit_across_multiple_dates() {
7778
let max_files = 10; // Set maximum file count to 10
7879
let max_size = 50; // Small file size to trigger rotation quickly
7980

80-
// Create multiple log writers, each with a different filename pattern (simulating different dates)
81+
// Create multiple log writers, each with a different filename pattern (simulating different
82+
// dates)
8183
println!("Creating multiple log files with different date patterns");
8284

8385
// First batch - simulate March 18
@@ -114,7 +116,8 @@ fn test_file_limit_across_multiple_dates() {
114116
println!("Files: {:?}", files);
115117

116118
// Verify if the total number of files exceeds the limit
117-
// Note: If this assertion fails, it means we've reproduced the issue - file count is not properly limited
119+
// Note: If this assertion fails, it means we've reproduced the issue - file count is not
120+
// properly limited
118121
assert!(
119122
files.len() <= max_files,
120123
"Expected at most {} files, but found {} files across multiple dates",

0 commit comments

Comments
 (0)