mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 16:03:49 +00:00
test(persistence): assert sidecar durability barrier
This commit is contained in:
@@ -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')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user