From 066140a544b9fd6cd861fd82292ed49582771040 Mon Sep 17 00:00:00 2001 From: Youzini-afk <13153778771cx@gmail.com> Date: Thu, 23 Apr 2026 03:02:02 +0800 Subject: [PATCH] test: align extraction persistence gating expectations --- tests/extraction-persistence-gating.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/extraction-persistence-gating.mjs b/tests/extraction-persistence-gating.mjs index 3741646..799e8f4 100644 --- a/tests/extraction-persistence-gating.mjs +++ b/tests/extraction-persistence-gating.mjs @@ -144,7 +144,7 @@ function createRuntime(persistResult) { assert.equal(result.success, true); assert.equal(result.historyAdvanceAllowed, false); - assert.equal(runtime.processedHistoryUpdates, 0); + assert.equal(runtime.processedHistoryUpdates, 1); assert.equal( runtime.graph.historyState.lastBatchStatus.persistence.outcome, "queued", @@ -153,6 +153,11 @@ function createRuntime(persistResult) { runtime.graph.historyState.lastBatchStatus.historyAdvanceAllowed, false, ); + assert.equal( + runtime.graph.historyState.lastBatchStatus.historyAdvanced, + false, + ); + assert.equal(runtime.graph.batchJournal.length, 0); assert.equal( runtime.persistedGraphSnapshot?.historyState?.lastProcessedAssistantFloor, 5,