fix(ci): classify gateway agent helper as test-only · openclaw/openclaw@fce62c6
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { vi } from "vitest"; |
2 | | -import { agentCommand } from "../test-helpers.runtime-state.js"; |
| 2 | +import { agentCommand } from "./test-helpers.runtime-state.js"; |
3 | 3 | |
4 | 4 | export type AgentCommandCall = Record<string, unknown>; |
5 | 5 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,6 +4,7 @@ import path from "node:path";
|
4 | 4 | import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test, vi } from "vitest"; |
5 | 5 | import type { ChannelPlugin } from "../channels/plugins/types.js"; |
6 | 6 | import { createChannelTestPluginBase } from "../test-utils/channel-plugins.js"; |
| 7 | +import { waitForAgentCommandCall } from "./agent-command.test-helpers.js"; |
7 | 8 | import { setRegistry } from "./server.agent.gateway-server-agent.mocks.js"; |
8 | 9 | import { createRegistry } from "./server.e2e-registry-helpers.js"; |
9 | 10 | import { |
@@ -15,7 +16,6 @@ import {
|
15 | 16 | testState, |
16 | 17 | writeSessionStore, |
17 | 18 | } from "./test-helpers.js"; |
18 | | -import { waitForAgentCommandCall } from "./test/agent-command-helpers.js"; |
19 | 19 | |
20 | 20 | installGatewayTestHooks({ scope: "suite" }); |
21 | 21 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,6 +6,7 @@ import { WebSocket } from "ws";
|
6 | 6 | import type { ChannelPlugin } from "../channels/plugins/types.js"; |
7 | 7 | import { emitAgentEvent, registerAgentRunContext } from "../infra/agent-events.js"; |
8 | 8 | import { createChannelTestPluginBase } from "../test-utils/channel-plugins.js"; |
| 9 | +import { readAgentCommandCall } from "./agent-command.test-helpers.js"; |
9 | 10 | import { setRegistry } from "./server.agent.gateway-server-agent.mocks.js"; |
10 | 11 | import { createRegistry } from "./server.e2e-registry-helpers.js"; |
11 | 12 | import { |
@@ -22,7 +23,6 @@ import {
|
22 | 23 | withGatewayServer, |
23 | 24 | writeSessionStore, |
24 | 25 | } from "./test-helpers.js"; |
25 | | -import { readAgentCommandCall } from "./test/agent-command-helpers.js"; |
26 | 26 | |
27 | 27 | installGatewayTestHooks({ scope: "suite" }); |
28 | 28 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。