test(orchestration): give the stopping-worker guard fixtures a Run

This commit is contained in:
Jinwoo-H
2026-09-08 04:32:20 -04:00
parent dd86b504a9
commit 83cf5eceb6
@@ -12,7 +12,7 @@ describe('a Task whose supervised worker is stopping', () => {
afterEach(() => db.close())
function localWorker() {
const task = db.createTask({ spec: 'local work' })
const task = db.createTask({ runId: 'run_legacy_local', spec: 'local work' })
const { dispatch } = db.createStartingWorkerDispatch({
taskId: task.id,
startOptions: {},
@@ -59,7 +59,7 @@ describe('a Task whose supervised worker is stopping', () => {
})
it('control: still accepts dispatched for an active Dispatch with no supervised worker', () => {
const task = db.createTask({ spec: 'unsupervised work' })
const task = db.createTask({ runId: 'run_legacy_local', spec: 'unsupervised work' })
createRootDispatch(db, task.id, 'term_worker')
expect(db.updateTaskStatus(task.id, 'dispatched')?.status).toBe('dispatched')