Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

test(cli): keep fixture host until released

Pcristin6f91a16fc2a7
diff --git a/tests/test_cli.c b/tests/test_cli.c
index 01fb79ec8..b0284887e 100644
--- a/tests/test_cli.c
+++ b/tests/test_cli.c
@@ -1653,8 +1653,9 @@ static _Noreturn void cli_scope_host_child(const cli_scope_fixture_t *fixture, i
(void)write(ready_fd, &ready, 1);
close(ready_fd);
bool drained = false;
- uint64_t deadline = cbm_now_ms() + 120000U;
- while (ready_ok && cbm_now_ms() < deadline) {
+ /* The parent owns the release pipe. If it exits, poll observes POLLHUP;
+ * a fixed lifetime can stop a healthy host during a slow binary install. */
+ while (ready_ok) {
if (cbm_daemon_runtime_service_wait_exited(service, 50U)) {
drained = true;
break;