Lightweight coding agent that runs in your terminal
Rust
Stabilize RMCP pid file cleanup test (#13881)
Ahmed Ibrahim6052558a017b
diff --git a/codex-rs/rmcp-client/tests/process_group_cleanup.rs b/codex-rs/rmcp-client/tests/process_group_cleanup.rsindex 8ed9ba305a..bb033af875 100644--- a/codex-rs/rmcp-client/tests/process_group_cleanup.rs+++ b/codex-rs/rmcp-client/tests/process_group_cleanup.rs@@ -24,8 +24,13 @@ async fn wait_for_pid_file(path: &Path) -> Result<u32> {for _ in 0..50 {match fs::read_to_string(path) {Ok(content) => {- let pid = content- .trim()+ let trimmed = content.trim();+ if trimmed.is_empty() {+ tokio::time::sleep(Duration::from_millis(100)).await;+ continue;+ }++ let pid = trimmed.parse::<u32>().with_context(|| format!("failed to parse pid from {}", path.display()))?;return Ok(pid);