test(agent): fix status round-trip path assertion to /agents/{id}

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-04 15:48:09 +08:00
co-authored by Claude Opus 4.8
parent f1637c3ecd
commit 557fb2b829
+1 -1
View File
@@ -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"}}`))
}))