fix(handlers): repair instructions test compile
Some checks failed
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 28s
Harness Replays / detect-changes (pull_request) Successful in 20s
CI / Detect changes (pull_request) Successful in 1m14s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 24s
E2E API Smoke Test / detect-changes (pull_request) Successful in 1m17s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 1m12s
gate-check-v3 / gate-check (pull_request) Successful in 45s
qa-review / approved (pull_request) Successful in 32s
security-review / approved (pull_request) Failing after 33s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 1m13s
sop-tier-check / tier-check (pull_request) Successful in 33s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m34s
Harness Replays / Harness Replays (pull_request) Successful in 8s
CI / Canvas (Next.js) (pull_request) Successful in 8s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 8s
CI / Python Lint & Test (pull_request) Successful in 7s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 9s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 1m54s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 4m3s
sop-checklist / na-declarations (pull_request) awaiting /sop-n/a declaration for: qa-review, security-review
CI / Platform (Go) (pull_request) Failing after 10m8s
CI / all-required (pull_request) Successful in 1s
sop-checklist / all-items-acked (pull_request) All SOP items acknowledged (7/7)

This commit is contained in:
hongming-codex-laptop 2026-05-14 07:40:04 -07:00
parent 5738f53ee8
commit 4ecced0a30

View File

@ -11,7 +11,6 @@ import (
"time"
"github.com/DATA-DOG/go-sqlmock"
"github.com/Molecule-AI/molecule-monorepo/platform/internal/db"
"github.com/gin-gonic/gin"
)
@ -193,7 +192,7 @@ func TestInstructionsHandler_Create_InvalidScope(t *testing.T) {
handler.Create(c)
if w.Code != http.BadRequest {
if w.Code != http.StatusBadRequest {
t.Fatalf("expected 400, got %d: %s", w.Code, w.Body.String())
}
}