feat: surface ecc2 daemon activity

This commit is contained in:
Affaan Mustafa
2026-04-08 02:40:18 -07:00
parent a7bfe82af9
commit 2709694b7b
4 changed files with 304 additions and 51 deletions

View File

@@ -1237,8 +1237,11 @@ mod tests {
fn wait_for_file(path: &Path) -> Result<String> {
for _ in 0..200 {
if path.exists() {
return fs::read_to_string(path)
.with_context(|| format!("failed to read {}", path.display()));
let content = fs::read_to_string(path)
.with_context(|| format!("failed to read {}", path.display()))?;
if content.lines().count() >= 2 {
return Ok(content);
}
}
thread::sleep(StdDuration::from_millis(20));