v0 plan: task 04 timeout check needs --preserve-status; note the finding

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-09-25 02:33:46 -07:00
co-authored by Claude Fable 5.1
parent c524ff943d
commit 1e7d6dd78f
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -94,11 +94,11 @@ cp docs/plans/v0/_files/internal/admin/admin_test.go internal/admin/
```sh
make build
timeout --signal=TERM 3 bin/crossbar -config example.toml; echo "exit=$?"
timeout --preserve-status --signal=TERM 3 bin/crossbar -config example.toml; echo "exit=$?"
```
Expected on stderr: a line containing `listening` and `addr=127.0.0.1:17777`, then
`shutting down`; then `exit=0`. (`example.toml` names two upstreams that are not running; the
`shutting down`; then `exit=0` (`--preserve-status` makes `timeout` report crossbar's own exit code; without it GNU `timeout` prints 124 for any child it had to signal). (`example.toml` names two upstreams that are not running; the
health table simply records them unhealthy — that is fine here.)
```sh