diff --git a/cli/test/e2e/prompt_test.go b/cli/test/e2e/prompt_test.go index 93e97642..bbb7b1e0 100644 --- a/cli/test/e2e/prompt_test.go +++ b/cli/test/e2e/prompt_test.go @@ -344,8 +344,10 @@ func TestSubmissionCancellationRacesStartAndCompletion(t *testing.T) { if cancelled.err != nil { t.Fatal(cancelled.err) } + // The target may have joined the first turn's next request before the + // cancellation lands; that turn is shared, so it is left running. switch cancelled.outcome { - case "cancelled_queued", "interrupt_requested", "not_pending": + case "cancelled_queued", "interrupt_requested", "shared_running", "not_pending": default: t.Fatalf("unexpected racing cancellation outcome %q", cancelled.outcome) }