Skip to content

Commit ee51697

Browse files
committed
test(runtime): read the WorkHub stop outcome off the spine
The stop test from #4439 read the run's status and abort source off the header. Both are the terminal event's to state, and the test already asserts on it. Generated-by: Claude Code
1 parent 7ebdb6d commit ee51697

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/runtime/src/__tests__/session-manager-terminal-ledger.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,9 @@ describe('SessionManager terminal ledger invariants', () => {
316316
});
317317

318318
const expected = workHubDirectStopAbortSource('workhub-stop-action');
319-
const [run] = await runStore.listSessionRuns(session.id);
319+
const [run] = await runStore.listSessionInvocations(session.id);
320320
if (!run) throw new Error('run was not recorded');
321-
assert.strictEqual(run.status, 'cancelled');
322-
assert.strictEqual(run.abortSource, expected);
321+
assert.strictEqual(runtimeInvocationOutcome(run), 'cancelled');
323322
const [terminal] = (await runStore.readRuntimeEvents(session.id, run.runId)).filter(
324323
isTerminalRuntimeEvent,
325324
);

0 commit comments

Comments
 (0)