From 557fb2b82900caff78ec22d999a706149e6a41fd Mon Sep 17 00:00:00 2001 From: chenchen Date: Thu, 4 Jun 2026 15:48:09 +0800 Subject: [PATCH] test(agent): fix status round-trip path assertion to /agents/{id} Co-Authored-By: Claude Opus 4.8 --- heicode/controller/agent_template_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heicode/controller/agent_template_test.go b/heicode/controller/agent_template_test.go index 0e0553e..f56c0f1 100644 --- a/heicode/controller/agent_template_test.go +++ b/heicode/controller/agent_template_test.go @@ -177,7 +177,7 @@ func TestAMStartTemplateAgent_RoundTrip(t *testing.T) { func TestAMGetAgentStatus_RoundTrip(t *testing.T) { srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - require.Equal(t, "/api/agent/agents/rt-1", r.URL.Path) + require.Equal(t, "/agents/rt-1", r.URL.Path) w.Header().Set("Content-Type", "application/json") _, _ = w.Write([]byte(`{"success":true,"data":{"status":"running"}}`)) }))