fix: show the fake agent's output when loop_driver's generations wait times out

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-04 10:24:10 -08:00
1 parent 7f1851fbb9
commit eb235dd91e
2 files changed
+13 -5

No files matched your search

+11 -3
View File
@@ -5984,9 +5984,17 @@ second line"
}
fn wait_for_generations(seen: &Arc<Mutex<String>>, count: usize) {
wait_until("the agent generations", || {
launched_prompts(seen).len() >= count
});
let deadline = Instant::now() + Duration::from_secs(30);
while Instant::now() < deadline {
if launched_prompts(seen).len() >= count {
return;
}
thread::sleep(Duration::from_millis(20));
}
panic!(
"never saw {count} agent generations; the fake agent printed {:?}. No ARGS line means target/debug/fake-agent is older than its source: touch fake-agent/src/main.rs",
lock(seen).as_str()
);
}
#[test]