From ed70b7c484959280e7df6019703d68dd838efde9 Mon Sep 17 00:00:00 2001 From: Quaternions <krakow20@gmail.com> Date: Tue, 21 Jan 2025 09:00:12 -0800 Subject: [PATCH] tests: fix thread limit --- strafe-client/src/physics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strafe-client/src/physics.rs b/strafe-client/src/physics.rs index 8a49355a..814345df 100644 --- a/strafe-client/src/physics.rs +++ b/strafe-client/src/physics.rs @@ -2265,7 +2265,7 @@ mod test{ // spawn threads println!("spawning up to {thread_limit} threads..."); 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(file_path)=get_file_path(dir_entry_result?)?{ active_thread_count+=1;