mirror of
https://gh-proxy.org/https://github.com/klinsmaya/multica.git
synced 2026-11-09 18:06:45 +08:00
* 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]>
17 lines
471 B
Go
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)
|
|
}
|
|
}
|