tests: fix thread limit

This commit is contained in:
Quaternions 2025-01-21 09:00:12 -08:00
parent c7575f2e21
commit ed70b7c484

View File

@ -2265,7 +2265,7 @@ mod test{
// spawn threads // spawn threads
println!("spawning up to {thread_limit} threads..."); println!("spawning up to {thread_limit} threads...");
let mut active_thread_count=0; let mut active_thread_count=0;
for _ in 0..thread_limit{ while active_thread_count<thread_limit{
if let Some(dir_entry_result)=read_dir.next(){ if let Some(dir_entry_result)=read_dir.next(){
if let Some(file_path)=get_file_path(dir_entry_result?)?{ if let Some(file_path)=get_file_path(dir_entry_result?)?{
active_thread_count+=1; active_thread_count+=1;