From 337f8877ccb68e1b03d5ce179b4b86f5a6b95f22 Mon Sep 17 00:00:00 2001 From: dj-oyu <68707227+dj-oyu@users.noreply.github.com> Date: Sat, 28 Feb 2026 23:23:39 +0900 Subject: [PATCH] fix(test): align "cancelled" spelling with upstream "canceled" The subagent code uses "canceled" (American spelling, upstream convention) but the reporter test still expected "cancelled" (British spelling). Co-Authored-By: Claude Opus 4.6 --- pkg/tools/subagent_reporter_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/tools/subagent_reporter_test.go b/pkg/tools/subagent_reporter_test.go index 1b64599b1..9cbec59ab 100644 --- a/pkg/tools/subagent_reporter_test.go +++ b/pkg/tools/subagent_reporter_test.go @@ -174,7 +174,7 @@ func TestSubagentManager_Spawn_SnapshotLiveDuringExecution(t *testing.T) { // TestSubagentManager_Spawn_CancelledDuringExecution verifies that when the // context is cancelled while a subagent's LLM call is in progress, the -// Broadcaster receives agent_gc with reason="cancelled" and the agent is +// Broadcaster receives agent_gc with reason="canceled" and the agent is // removed from the snapshot. // // Synchronisation: @@ -224,7 +224,7 @@ loop: } } - // Locate agent_gc and verify reason = "cancelled". + // Locate agent_gc and verify reason = "canceled". var gcEv orch.Event for _, ev := range events { if ev.Type == "agent_gc" { @@ -232,12 +232,12 @@ loop: break } } - if gcEv.Reason != "cancelled" { - t.Errorf("agent_gc reason = %q, want %q; events: %+v", gcEv.Reason, "cancelled", events) + if gcEv.Reason != "canceled" { + t.Errorf("agent_gc reason = %q, want %q; events: %+v", gcEv.Reason, "canceled", events) } // Snapshot must be empty after the GC event. if snap := b.Snapshot(); len(snap) != 0 { - t.Errorf("snapshot must be empty after agent_gc(cancelled), got: %v", snap) + t.Errorf("snapshot must be empty after agent_gc(canceled), got: %v", snap) } }