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:
@@ -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"}}`))
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user