fix(handlers): correct two test-file bugs blocking the build #870

Merged
devops-engineer merged 3 commits from fix/handlers-test-build-fixes into staging 2026-05-13 18:39:15 +00:00

3 Commits

Author SHA1 Message Date
aaa51dd7c9 fix(handlers): add database/sql import to workspace_dispatchers_test.go
Some checks are pending
CI / Detect changes (pull_request) Waiting to run
CI / Platform (Go) (pull_request) Blocked by required conditions
CI / Canvas (Next.js) (pull_request) Blocked by required conditions
CI / Shellcheck (E2E scripts) (pull_request) Blocked by required conditions
CI / Canvas Deploy Reminder (pull_request) Blocked by required conditions
CI / Python Lint & Test (pull_request) Blocked by required conditions
Secret scan / Scan diff for credential-shaped strings (pull_request) Waiting to run
sop-checklist-gate / gate (pull_request) Waiting to run
sop-tier-check / tier-check (pull_request) Waiting to run
CI / all-required (pull_request) Injected
sop-checklist / all-items-acked (pull_request) Injected tier:low
workspace_dispatchers_test.go uses sql.ErrNoRows but did not import
"database/sql". Also resolves merge conflict in
plugins_helpers_pure_test.go (correct assertion for symmetric hyphen
normalization already present in both sides).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 18:37:09 +00:00
a131282fb9 fix(handlers/plugins_helpers_pure_test): correct copy-paste assertion bug
TestSupportsRuntime_HyphenUnderscoreNormalized line 33 asserted
supportsRuntime("anthropic_claude") == true on a plugin declaring
["claude-code"] — impossible to match.  Corrected to assert the
symmetric hyphen form: supportsRuntime("claude-code") == true.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 18:36:21 +00:00
8e4cd43824 fix(handlers/a2a_proxy_helpers_test): remove unused in/out variables in two tests
Fixes build failure introduced by bb5e0bb5 where readUsageMap return
values were captured but not used in TestReadUsageMap_MissingUsage and
TestReadUsageMap_MalformedUsageJSON.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 18:36:21 +00:00