Files
multica/server/internal/handler/task_cancellation_actor_test.go
5132ac99eb MUL-7235: show cancellation actor in run history (#8249)
* MUL-7235: show cancellation actor in run history

Co-authored-by: multica-agent <[email protected]>

* fix(issues): simplify failed run recovery UI

Co-authored-by: multica-agent <[email protected]>

* Revert "fix(issues): simplify failed run recovery UI"

This reverts commit 1b337bbe46.

Co-authored-by: multica-agent <[email protected]>

* fix(tasks): keep cancellation attribution consistent

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: Lambda <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-09-10 21:24:35 +08:00

17 lines
471 B
Go

package handler
import (
"context"
"testing"
)
func TestTaskCancellationActor_SnapshotsAgentName(t *testing.T) {
const name = "Cancellation actor agent"
agentID := createHandlerTestAgent(t, name, nil)
actor := testHandler.taskCancellationActor(context.Background(), "agent", agentID)
if actor.Type != "agent" || !actor.ID.Valid || uuidToString(actor.ID) != agentID || actor.Name != name {
t.Fatalf("actor = %#v, want agent %s (%s)", actor, name, agentID)
}
}