From fb709ff143ead152f3476a81394e64b2a2599a34 Mon Sep 17 00:00:00 2001 From: Jiayuan Zhang Date: Wed, 25 Mar 2026 15:27:50 +0800 Subject: [PATCH] fix(test): remove skills column from integration test fixtures Migration 008 drops agent.skills column, so test fixtures inserting into the agent table must no longer reference it. Co-Authored-By: Claude Opus 4.6 --- server/cmd/server/integration_test.go | 4 ++-- server/internal/handler/handler_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/cmd/server/integration_test.go b/server/cmd/server/integration_test.go index 4cce5690..1b6e07fc 100644 --- a/server/cmd/server/integration_test.go +++ b/server/cmd/server/integration_test.go @@ -143,9 +143,9 @@ func setupIntegrationTestFixture(ctx context.Context, pool *pgxpool.Pool) (strin if _, err := pool.Exec(ctx, ` INSERT INTO agent ( workspace_id, name, description, runtime_mode, runtime_config, - runtime_id, visibility, max_concurrent_tasks, owner_id, skills, tools, triggers + runtime_id, visibility, max_concurrent_tasks, owner_id, tools, triggers ) - VALUES ($1, $2, '', 'cloud', '{}'::jsonb, $3, 'workspace', 1, $4, '', '[]'::jsonb, '[]'::jsonb) + VALUES ($1, $2, '', 'cloud', '{}'::jsonb, $3, 'workspace', 1, $4, '[]'::jsonb, '[]'::jsonb) `, workspaceID, "Integration Test Agent", runtimeID, userID); err != nil { return "", "", err } diff --git a/server/internal/handler/handler_test.go b/server/internal/handler/handler_test.go index d49364a7..cb1f0bb6 100644 --- a/server/internal/handler/handler_test.go +++ b/server/internal/handler/handler_test.go @@ -109,9 +109,9 @@ func setupHandlerTestFixture(ctx context.Context, pool *pgxpool.Pool) (string, s if _, err := pool.Exec(ctx, ` INSERT INTO agent ( workspace_id, name, description, runtime_mode, runtime_config, - runtime_id, visibility, max_concurrent_tasks, owner_id, skills, tools, triggers + runtime_id, visibility, max_concurrent_tasks, owner_id, tools, triggers ) - VALUES ($1, $2, '', 'cloud', '{}'::jsonb, $3, 'workspace', 1, $4, '', '[]'::jsonb, '[]'::jsonb) + VALUES ($1, $2, '', 'cloud', '{}'::jsonb, $3, 'workspace', 1, $4, '[]'::jsonb, '[]'::jsonb) `, workspaceID, "Handler Test Agent", runtimeID, userID); err != nil { return "", "", err }