mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 01:29:56 +00:00
test(gateway): complete placement read policy fixture
Supply the policyConfig required by SessionRowReadView after scoped session authorization was introduced. This restores the gateway-root type check without weakening the production contract or changing lifecycle assertions.
This commit is contained in:
parent
b28166ffb9
commit
0901260323
1 changed files with 5 additions and 1 deletions
|
|
@ -9,7 +9,11 @@ import type { WorkerSessionPlacementProjection } from "./worker-environments/pla
|
|||
|
||||
function placementReadView() {
|
||||
const projection: SessionRowReadView & { isCurrent(): boolean } = {
|
||||
state: { cfg: {}, rowContext: buildSessionListRowMetadataContext({ now: 1 }) },
|
||||
state: {
|
||||
cfg: {},
|
||||
policyConfig: {},
|
||||
rowContext: buildSessionListRowMetadataContext({ now: 1 }),
|
||||
},
|
||||
describe: () => undefined,
|
||||
selectEntries: () => [],
|
||||
present: () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue