Skip to content

Commit fd73cfa

Browse files
steipeteYigtwxx
andcommitted
test(gateway): fix typed node invoke serialization fixture
Close over the typed execution payload instead of reading contextual this inside toJSON, whose surrounding invoke params contract is unknown. Keep the serialization delay and independent execution-budget assertions. The 141 registry tests and focused canonical-inherited test type graph pass. Co-authored-by: Yigtwxx <[email protected]>
1 parent 10f3f7f commit fd73cfa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/gateway/node-registry.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,17 +1963,17 @@ describe("gateway/node-registry", () => {
19631963
vi.setSystemTime(1_000);
19641964
const { registry, frames, release } = registerPairingWait();
19651965
const onDispatchReady = vi.fn();
1966+
const runParams = { runId: "run-budget", timeoutMs: 5_000 };
19661967
try {
19671968
const invoke = registry.invoke({
19681969
nodeId: "node-1",
19691970
command: "system.run",
19701971
timeoutMs: 100,
19711972
params: {
1972-
runId: "run-budget",
1973-
timeoutMs: 5_000,
1973+
...runParams,
19741974
toJSON() {
19751975
vi.setSystemTime(Date.now() + 10);
1976-
return { runId: this.runId, timeoutMs: this.timeoutMs };
1976+
return runParams;
19771977
},
19781978
},
19791979
onDispatchReady,

0 commit comments

Comments
 (0)