Skip to content

Commit 865b6da

Browse files
committed
test: use canonical registry in worker startup fixture
1 parent 1e30786 commit 865b6da

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎src/gateway/worker-environments/worker-session-tool-executor.test.ts‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
resetGlobalHookRunner,
1212
} from "../../plugins/hook-runner-global.js";
1313
import { createMockPluginRegistry } from "../../plugins/hooks.test-helpers.js";
14+
import { createEmptyPluginRegistry } from "../../plugins/registry-empty.js";
1415
import { parseAgentSessionKey } from "../../routing/session-key.js";
1516
import { withEnvAsync } from "../../test-utils/env.js";
1617
import { readAgentRuntimeExecutionLineage } from "../agent-runtime-execution-lineage.js";
@@ -712,13 +713,9 @@ describe("worker spawn startup composition", () => {
712713
try {
713714
await withEnvAsync({ OPENCLAW_STATE_DIR: root }, async () => {
714715
const startup = await loadGatewayWorkerEnvironmentStartupState();
716+
const registry = createEmptyPluginRegistry();
715717
const runtime = await createGatewayWorkerEnvironmentRuntime({
716-
getPluginRegistry: () => ({
717-
workerProviders: new Map(),
718-
plugins: [],
719-
agentHarnesses: [],
720-
nodeHostCommands: [],
721-
}),
718+
getPluginRegistry: () => registry,
722719
getPortalRuntime: () => undefined,
723720
resolveGatewayContext,
724721
desktopSessionRegistry: createDesktopSessionRegistry({ lingerMs: 1 }),

0 commit comments

Comments
 (0)