Skip to content

Commit 7e906f6

Browse files
committed
test(pi-auto-dag): verify completed abort preserves all state
1 parent 47c78fa commit 7e906f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/pi-auto-dag/test/execution.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ test("durable blocked/completed notifications retain stable IDs and settle deliv
624624
assert.equal(completedRoundTrip.notifications.find(({ kind }) => kind === "completed")!.event_id, completedId);
625625
assert.equal(completedRoundTrip.notifications.length, 3);
626626
await assert.rejects(lifecycle.abort(project.root, "Too late"), /Cannot abort a completed run/);
627-
assert.equal((await readRunState(project.root, RUN_ID))!.phase, "completed");
627+
assert.deepEqual(await readRunState(project.root, RUN_ID), completedRoundTrip);
628628
await writeRunState(project.root, {
629629
...completedRoundTrip,
630630
notifications: completedRoundTrip.notifications.map((notification) => notification.kind === "completed"

0 commit comments

Comments
 (0)