Files
orca/tests/e2e/orchestration-run-pagination.unit.test.ts
mirror 34fa2cd5ca
Skill update round trip / roundtrip (false, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, latest) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
source snapshot 2026-09-02
2026-09-02 02:03:16 +08:00

17 lines
646 B
TypeScript

import { describe, expect, it, vi } from 'vitest'
import { listAllOrchestrationRuns } from './orchestration-run-pages'
describe('orchestration Run pagination compatibility', () => {
it('stops after an old server response without nextCursor', async () => {
const call = vi.fn().mockResolvedValue({
result: { runs: [{ id: 'run_old', objective: 'Old server Run' }] }
})
await expect(listAllOrchestrationRuns({ call })).resolves.toEqual([
{ id: 'run_old', objective: 'Old server Run' }
])
expect(call).toHaveBeenCalledTimes(1)
expect(call).toHaveBeenCalledWith('orchestration.runList', { limit: 100 })
})
})