From ab1dbaa8bd4569ece0a0f339d64846f1af476a9a Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sun, 23 Aug 2026 19:25:23 -0700 Subject: [PATCH] test(persistence): assert sidecar durability barrier --- src/main/persistence-split-pane-incarnation.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/persistence-split-pane-incarnation.test.ts b/src/main/persistence-split-pane-incarnation.test.ts index b092c3d7d9e..3bb135dd9e9 100644 --- a/src/main/persistence-split-pane-incarnation.test.ts +++ b/src/main/persistence-split-pane-incarnation.test.ts @@ -348,7 +348,11 @@ describe('Store', () => { }, terminalPtyIncarnationsByPaneKey: { [paneKey]: 'inc-stale' } }) - vi.spyOn(store, 'flushOrThrow').mockImplementationOnce(() => { + const storeInternals = store as unknown as { + workspaceSessionSidecars: { flushSync: (trigger?: string) => void } + } + const sidecarStore = storeInternals.workspaceSessionSidecars + vi.spyOn(sidecarStore, 'flushSync').mockImplementationOnce(() => { throw new Error('disk full') })