test: use tokio::time::sleep in async test poll loop (SonarCloud rust:S7488)

The multi-thread #[tokio::test] polled with a blocking std::thread::sleep,
stalling a runtime worker. Use tokio::time::sleep(..).await instead.
This commit is contained in:
Dylan M. Taylor
2026-10-21 17:18:48 -04:00
parent 6d8cbac7dc
commit faa16900c5
+1 -1
View File
@@ -1197,7 +1197,7 @@ mod tests {
break;
}
assert!(t.elapsed().as_secs() < 60, "doc_inspect never saw the finished job: {inspected}");
std::thread::sleep(std::time::Duration::from_millis(5));
tokio::time::sleep(std::time::Duration::from_millis(5)).await;
}
}
}