From 76ff1440375795bea3bb01c5c889ac00dac86145 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 3 Apr 2026 23:46:23 +0900 Subject: [PATCH] test(outbound): remove unused runner helper --- .../message-action-runner.test-helpers.ts | 56 ------------------- 1 file changed, 56 deletions(-) delete mode 100644 src/infra/outbound/message-action-runner.test-helpers.ts diff --git a/src/infra/outbound/message-action-runner.test-helpers.ts b/src/infra/outbound/message-action-runner.test-helpers.ts deleted file mode 100644 index f038f496dc1..00000000000 --- a/src/infra/outbound/message-action-runner.test-helpers.ts +++ /dev/null @@ -1,56 +0,0 @@ -import type { ChannelPlugin } from "../../channels/plugins/types.plugin.js"; -import type { OpenClawConfig } from "../../config/config.js"; -import { setActivePluginRegistry } from "../../plugins/runtime.js"; -import { createPluginRuntime, type PluginRuntime } from "../../plugins/runtime/index.js"; -import { loadBundledPluginTestApiSync } from "../../test-utils/bundled-plugin-public-surface.js"; -import { createTestRegistry } from "../../test-utils/channel-plugins.js"; - -const { slackPlugin, setSlackRuntime } = loadBundledPluginTestApiSync<{ - slackPlugin: ChannelPlugin; - setSlackRuntime: (runtime: PluginRuntime) => void; -}>("slack"); -const { telegramPlugin, setTelegramRuntime } = loadBundledPluginTestApiSync<{ - telegramPlugin: ChannelPlugin; - setTelegramRuntime: (runtime: PluginRuntime) => void; -}>("telegram"); - -export const slackConfig = { - channels: { - slack: { - botToken: "xoxb-test", - appToken: "xapp-test", - }, - }, -} as OpenClawConfig; - -export const telegramConfig = { - channels: { - telegram: { - botToken: "telegram-test", - }, - }, -} as OpenClawConfig; - -export function installMessageActionRunnerTestRegistry() { - const runtime = createPluginRuntime(); - setSlackRuntime(runtime); - setTelegramRuntime(runtime); - setActivePluginRegistry( - createTestRegistry([ - { - pluginId: "slack", - source: "test", - plugin: slackPlugin, - }, - { - pluginId: "telegram", - source: "test", - plugin: telegramPlugin, - }, - ]), - ); -} - -export function resetMessageActionRunnerTestRegistry() { - setActivePluginRegistry(createTestRegistry([])); -}