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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user