From c15ff51c84c69ebbf308afb03249995b400ffaad Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Tue, 17 Dec 2024 13:22:23 +0100 Subject: [PATCH] ci: fix --- examples/mp3-samples.rs | 3 ++- src/tests/mod.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/mp3-samples.rs b/examples/mp3-samples.rs index 8c2885b..0f57226 100644 --- a/examples/mp3-samples.rs +++ b/examples/mp3-samples.rs @@ -59,7 +59,8 @@ fn test_out_dir() -> PathBuf { }); let path = path.join("test_generated"); if !path.exists() { - std::fs::create_dir(path.clone()).unwrap(); + // This can fail, as tests are run in parallel. + let _ = std::fs::create_dir(path.clone()); } path } diff --git a/src/tests/mod.rs b/src/tests/mod.rs index e43ead7..eb4911f 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -46,7 +46,8 @@ fn test_out_dir() -> PathBuf { }); let path = path.join("test_generated"); if !path.exists() { - std::fs::create_dir(path.clone()).unwrap(); + // This can fail, as tests are run in parallel. + let _ = std::fs::create_dir(path.clone()); } path }