From d84c874f2325d40acb5b00804ffd47a3e385a6ee Mon Sep 17 00:00:00 2001 From: lanbinshen Date: Thu, 12 Feb 2026 19:10:58 +0800 Subject: [PATCH] delete while --- actix-files/tests/encoding.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/actix-files/tests/encoding.rs b/actix-files/tests/encoding.rs index 4d6c1df28..27f8c8dcc 100644 --- a/actix-files/tests/encoding.rs +++ b/actix-files/tests/encoding.rs @@ -202,9 +202,7 @@ async fn test_multiple_directories() { // Create test files std::fs::write("./tests/test1/test.txt", "File from test1").unwrap(); - while !std::path::Path::new("./tests/test1/test.txt").exists() {} std::fs::write("./tests/test2/fallback.txt", "File from test2").unwrap(); - while !std::path::Path::new("./tests/test2/fallback.txt").exists() {} // Test multiple directories with new_from_array let srv = test::init_service(App::new().service(Files::new_from_array( @@ -245,9 +243,7 @@ async fn test_multiple_directories_iterator() { // Create test files std::fs::write("./tests/test3/test.txt", "File from test3").unwrap(); - while !std::path::Path::new("./tests/test3/test.txt").exists() {} std::fs::write("./tests/test4/fallback.txt", "File from test4").unwrap(); - while !std::path::Path::new("./tests/test4/fallback.txt").exists() {} // Test multiple directories with new_multiple let srv = test::init_service(App::new().service(Files::new_multiple(