Skip to content

Commit 3a938b2

Browse files
committed
test: gate online recovery completion
1 parent 0facd98 commit 3a938b2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/integration/companion.test.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,8 @@ test('snapshot read rejection degrades once to lifecycle-only and preserves auth
18211821
test('later accepted online recovery stops snapshot reads and discards a delayed old result', async () => {
18221822
const context = await fixture();
18231823
const scenario = await deterministicConversationScenario(context, 'initial-only', {
1824-
heartbeat: true, env: { FAKE_ZCODE_SESSION_PROGRESS_RECOVERY: '1', FAKE_ZCODE_WAIT_FOR_PROGRESS_READ: '1' },
1824+
heartbeat: true, completionAfterProgressLine: '[zcode] ZCode turn started.\n',
1825+
env: { FAKE_ZCODE_SESSION_PROGRESS_RECOVERY: '1', FAKE_ZCODE_WAIT_FOR_PROGRESS_READ: '1' },
18251826
});
18261827
const visible = `${scenario.lines.join('')}${renderOutput(scenario.output, { json: true })}${JSON.stringify(scenario.status)}`;
18271828
assert.equal(scenario.stored.progressProbe.state, 'online'); assert.equal(scenario.stored.progressProbe.acceptedOnline, 1);

0 commit comments

Comments
 (0)