mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-07 09:10:55 +00:00
Add mock tests covering real failure scenarios that were previously untested despite 36/36 happy-path tests passing: - API rate limit (429): mock curl returns 429 for cloud API calls - Machine creation failure (422): mock curl returns 422 for POST to */machines* - SSH tunnel failure: fly ssh console / fly machine exec exit non-zero (simulates WireGuard tunnel context deadline exceeded) - SSH timeout: fly CLI never returns "ok", _fly_wait_for_ssh exhausts retries The fly mock now checks MOCK_ERROR_SCENARIO to simulate CLI-level failures (ssh_tunnel_failure, ssh_timeout) in addition to the existing curl-level error injection (rate_limit, create_failure). Agent: test-engineer Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| e2e.sh | ||
| macos-compat.sh | ||
| mock-curl-script.sh | ||
| mock.sh | ||
| qa-dry-run.sh | ||
| record.sh | ||
| run.sh | ||
| test-sandbox.sh | ||
| update-readme.py | ||