Repository navigation
Commit 6dad92c
committed
fix(tests): bump TestDaemon startup timeout from 30s to 60s
The user reported intermittent failures of
`daemon_mode_two_engines_share_same_hyperd` on macOS:
panicked at hyperdb-mcp/tests/daemon_tests.rs:818:
TestDaemon did not start within 30 seconds
Root cause: the outer wait was the same length as `HyperProcess::new`'s
own internal 30s timeout for the hyperd-callback connection. Under
macOS load (parallel tests, hyperd subprocess churn, system resource
pressure), hyperd startup can approach or exceed that limit. When it
does, the outer assertion fires before the inner timeout can return
its actual error message — masking the real cause behind a generic
"did not start" panic.
Bumping the outer timeout to 60s ensures the inner timeout has room
to surface a real error via the existing `daemon_handle.is_finished()`
branch. If hyperd genuinely can't start, we'll see "daemon thread
errored: <real reason>" instead of the unhelpful generic message.
Also tightens the panic message to clarify the failure mode (daemon
thread still running, no discovery file written) so the next reader
knows whether to look at hyperd-startup vs. discovery-write paths.1 parent d4c3a06 commit 6dad92c
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
799 | 807 | | |
800 | 808 | | |
801 | 809 | | |
| |||
806 | 814 | | |
807 | 815 | | |
808 | 816 | | |
809 | | - | |
| 817 | + | |
810 | 818 | | |
811 | 819 | | |
812 | 820 | | |
| |||
816 | 824 | | |
817 | 825 | | |
818 | 826 | | |
819 | | - | |
820 | | - | |
| 827 | + | |
| 828 | + | |
821 | 829 | | |
822 | 830 | | |
823 | 831 | | |
| |||
0 commit comments