Skip to content

Commit 9cece15

Browse files
committed
test(desktop): wait for the journal to empty, not for recovery to be called
1 parent 07f858f commit 9cece15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/desktop/src/main/desktop-executor/service.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ describe('results recovery will hand to the model', () => {
195195
await vi.waitFor(() => expect(sim.registrations).toHaveLength(1))
196196
sim.registrations[0]?.(true)
197197
await vi.waitFor(() => expect(sim.requests).toContain('POST /api/desktop/tool/complete'))
198-
await vi.waitFor(() => expect(recovered).toHaveBeenCalled())
198+
await vi.waitFor(async () => expect(await createExecutorJournal(path).load()).toEqual([]))
199199

200200
expect([...(await desktopExecutor.pendingResults())]).toEqual(['handed-back'])
201201
await desktopExecutor.signOut()

0 commit comments

Comments
 (0)