From dc2dc4262767e84ece92a29856e5a728cc02cd5a Mon Sep 17 00:00:00 2001 From: Levi Neuwirth Date: Tue, 28 Jul 2026 11:02:48 -0400 Subject: [PATCH] test(journey): retain daemon cleanup while awaiting dired Capture the managed daemon's lifecycle facts from the ready report before waiting for the post-quiescence directory snapshot. If that regression assertion times out, the acceptance harness can now terminate the daemon instead of leaving it orphaned. --- tests/gpu_invocation_acceptance.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/gpu_invocation_acceptance.rs b/tests/gpu_invocation_acceptance.rs index ec6be89..b4e3102 100644 --- a/tests/gpu_invocation_acceptance.rs +++ b/tests/gpu_invocation_acceptance.rs @@ -721,6 +721,13 @@ mod crdt { // alive through Journey N2's asynchronous dired commit. Snapshot // one is the deliberately pre-existing bootstrap document; snapshot // two is the post-quiescence directory surface. + // Capture the spawned daemon's PID from the ready report first so + // ManagedProbe::drop can terminate it if snapshot two never arrives. + let ready = directory.wait_ready(); + assert_eq!( + ready.get("spawned_daemon").map(String::as_str), + Some("true") + ); let facts = directory.wait_for("buffer_snapshots", "2"); let listing = decode_hex(&facts["last_snapshot_hex"]); let canonical = fs::canonicalize(temp.path()).expect("canonical directory");