summaryrefslogtreecommitdiffstats
path: root/tests/remote_agent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/remote_agent.rs')
-rw-r--r--tests/remote_agent.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/remote_agent.rs b/tests/remote_agent.rs
index 22e803a..24e259e 100644
--- a/tests/remote_agent.rs
+++ b/tests/remote_agent.rs
@@ -44,7 +44,10 @@ fn a_full_build_runs_over_the_agent_protocol() {
.expect("spawn sandbox-agent");
let out = pipeline::run_with(&ctx).unwrap();
+ // Kill *and* reap: an unreaped child is a zombie the next test inherits, and
+ // clippy is right that a spawn nobody waits on is unfinished business.
let _ = agent.kill();
+ let _ = agent.wait();
assert!(matches!(out, pipeline::Outcome::Succeeded { .. }), "{out:?}");
// The agent-streamed output landed in the same file the SSE tail reads.
@@ -161,6 +164,7 @@ fn a_dial_in_goes_to_whichever_backend_is_waiting() {
let spec = SandboxSpec::new("extra-x86_64", "task", Duration::from_secs(10));
let sbx = second.acquire(&spec);
let _ = agent.kill();
+ let _ = agent.wait();
assert!(sbx.is_ok(), "the second backend must be able to take the dial-in: {:?}", sbx.err());
}