Skip to content

Commit 8eac3d6

Browse files
committed
fix: skip miri
1 parent b9eb860 commit 8eac3d6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

datadog-log/src/writers.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,13 @@ impl Write for StdWriter {
274274
}
275275

276276
#[cfg(test)]
277-
#[cfg_attr(miri, ignore)]
278277
mod tests {
279278
use super::*;
280279
use std::fs;
281280
use tempfile::TempDir;
282281

283282
#[test]
283+
#[cfg_attr(miri, ignore)]
284284
fn test_file_writer_basic_functionality() {
285285
let temp_dir = TempDir::new().unwrap();
286286
let file_path = temp_dir.path().join("test.log");
@@ -306,6 +306,7 @@ mod tests {
306306
}
307307

308308
#[test]
309+
#[cfg_attr(miri, ignore)]
309310
fn test_file_writer_creates_directories() {
310311
let temp_dir = TempDir::new().unwrap();
311312
let nested_path = temp_dir
@@ -326,6 +327,7 @@ mod tests {
326327
}
327328

328329
#[test]
330+
#[cfg_attr(miri, ignore)]
329331
fn test_basic_rotation() {
330332
let temp_dir = TempDir::new().unwrap();
331333
let file_path = temp_dir.path().join("rotate.log");
@@ -356,6 +358,7 @@ mod tests {
356358
}
357359

358360
#[test]
361+
#[cfg_attr(miri, ignore)]
359362
fn test_max_files_cleanup() {
360363
let temp_dir = TempDir::new().unwrap();
361364
let file_path = temp_dir.path().join("cleanup.log");
@@ -389,6 +392,7 @@ mod tests {
389392
}
390393

391394
#[test]
395+
#[cfg_attr(miri, ignore)]
392396
fn test_max_files_one_keeps_only_current() {
393397
let temp_dir = TempDir::new().unwrap();
394398
let file_path = temp_dir.path().join("single.log");
@@ -422,6 +426,7 @@ mod tests {
422426
}
423427

424428
#[test]
429+
#[cfg_attr(miri, ignore)]
425430
fn test_no_rotation_when_size_not_specified() {
426431
let temp_dir = TempDir::new().unwrap();
427432
let file_path = temp_dir.path().join("no_rotation.log");
@@ -453,6 +458,7 @@ mod tests {
453458
}
454459

455460
#[test]
461+
#[cfg_attr(miri, ignore)]
456462
fn test_invalid_path_handling() {
457463
let config = FileConfig {
458464
path: String::new(),

0 commit comments

Comments
 (0)