picoclaw/web/backend/api
yinwm 1984bb5bbd fix(test): mock gateway health check in status tests
Two gateway tests were flaky due to race conditions:
- TestGatewayStatusReturnsRestartingDuringRestartGap
- TestGatewayRestartReturnsErrorStatusWhenReplacementFailsToStart

The handleGatewayStatus function calls getGatewayHealth which can
override the test's expected status. By mocking gatewayHealthGet
to return an error, the tests now reliably verify the expected
status values.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 22:21:27 +08:00
..
channels.go feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
config.go feat(config): add exec controls and gate cron commands on exec settings (#1685) 2026-03-17 18:56:52 +08:00
config_test.go feat(config): add exec controls and gate cron commands on exec settings (#1685) 2026-03-17 18:56:52 +08:00
gateway.go refactor: centralize environment variable key constants (#1730) 2026-03-18 18:03:24 +08:00
gateway_host.go feat: add web gateway hot reload and polling state sync (#1684) 2026-03-17 18:46:00 +08:00
gateway_host_test.go feat: add web gateway hot reload and polling state sync (#1684) 2026-03-17 18:46:00 +08:00
gateway_test.go fix(test): mock gateway health check in status tests 2026-03-22 22:21:27 +08:00
launcher_config.go feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
launcher_config_test.go feat(web): add agent management UI and improve launcher integration (#1358) 2026-03-11 18:37:00 +08:00
log.go feat(web): add agent management UI and improve launcher integration (#1358) 2026-03-11 18:37:00 +08:00
model_status.go feat(web): add agent management UI and improve launcher integration (#1358) 2026-03-11 18:37:00 +08:00
models.go feat(web): add agent management UI and improve launcher integration (#1358) 2026-03-11 18:37:00 +08:00
models_test.go refactor: update model name and add VolcEngine coding plan (#1412) 2026-03-12 16:10:29 +08:00
oauth.go feat(web): implement macOS app feature and file logger (#1723) 2026-03-18 14:43:58 +08:00
oauth_test.go refactor: update model name and add VolcEngine coding plan (#1412) 2026-03-12 16:10:29 +08:00
pico.go feat: add web gateway hot reload and polling state sync (#1684) 2026-03-17 18:46:00 +08:00
pico_test.go feat: add web gateway hot reload and polling state sync (#1684) 2026-03-17 18:46:00 +08:00
router.go feat(web): implement macOS app feature and file logger (#1723) 2026-03-18 14:43:58 +08:00
session.go feat(web): add agent management UI and improve launcher integration (#1358) 2026-03-11 18:37:00 +08:00
session_test.go feat(web): add agent management UI and improve launcher integration (#1358) 2026-03-11 18:37:00 +08:00
skills.go refactor: centralize environment variable key constants (#1730) 2026-03-18 18:03:24 +08:00
skills_test.go feat(web): add agent management UI and improve launcher integration (#1358) 2026-03-11 18:37:00 +08:00
startup.go feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
startup_test.go feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
tools.go feat(tools): add SpawnStatusTool for reporting subagent statuses (#1540) 2026-03-17 14:41:43 +08:00
tools_test.go feat(web): add agent management UI and improve launcher integration (#1358) 2026-03-11 18:37:00 +08:00