test: complete phase4 cross-region handoff

This commit is contained in:
2026-08-24 23:35:26 +08:00
parent 615ecb4ba1
commit 058bf9f4e6
4 changed files with 28 additions and 4 deletions
@@ -128,7 +128,7 @@ function markerOwnedContext() {
}]
const histories = [{
id: String(nextId++), action: 'AUTO_CREATE', fromVersion: null, toVersion: 0,
reason: '国内确认出仓自动创建', operatorId: CUSTOMER_ID, operatorName: 'fixture',
reason: '国内确认出仓自动创建', operatorId: '1000001', operatorName: 'fixture',
createdAt: '2026-08-24T08:00:01',
}]
const detail = () => ({ query: { query: clone(task), expired: true },
@@ -178,7 +178,7 @@ function markerOwnedContext() {
} else task.status = 'READY'
}
histories.push({ id: String(nextId++), action: 'MANUAL_NODE', fromVersion: task.version - 1,
toVersion: task.version, reason: body.reason, operatorId: CUSTOMER_ID, operatorName: 'fixture',
toVersion: task.version, reason: body.reason, operatorId: '1000001', operatorName: 'fixture',
createdAt: body.observedAt })
const saved = detail(); idempotency.set(key, { signature, detail: clone(saved) })
return ok(saved, `req-${key}`)