From 4ecced0a300cf805250a5c232e3de15ccb811908 Mon Sep 17 00:00:00 2001 From: hongming-codex-laptop Date: Thu, 14 May 2026 07:40:04 -0700 Subject: [PATCH] fix(handlers): repair instructions test compile --- workspace-server/internal/handlers/instructions_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/workspace-server/internal/handlers/instructions_test.go b/workspace-server/internal/handlers/instructions_test.go index f8b75ced..1b8b8ce7 100644 --- a/workspace-server/internal/handlers/instructions_test.go +++ b/workspace-server/internal/handlers/instructions_test.go @@ -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()) } }