Skip to content

Commit 319df0e

Browse files
authored
test: trim plugin test duplicates (#126917)
1 parent 7e87d77 commit 319df0e

8 files changed

Lines changed: 0 additions & 78 deletions

File tree

‎extensions/anthropic/cli-shared.execution-env.test.ts‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
import { describe, expect, it } from "vitest";
2-
import { buildAnthropicCliBackend } from "./cli-backend.js";
32
import { resolveClaudeCliThinkingEnv } from "./cli-shared.js";
43

54
describe("Claude CLI execution environment", () => {
6-
it("preserves the prepared launch environment for the same context budget", () => {
7-
const backend = buildAnthropicCliBackend();
8-
9-
expect(
10-
backend.prepareExecution?.({
11-
workspaceDir: "/tmp/openclaw-claude-cli",
12-
provider: "claude-cli",
13-
modelId: "claude-opus-4-8",
14-
contextTokenBudget: 100_000,
15-
}),
16-
).toEqual({ env: { CLAUDE_CODE_AUTO_COMPACT_WINDOW: "100000" } });
17-
});
18-
195
it.each([
206
["high", { CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING: "1", MAX_THINKING_TOKENS: "16384" }],
217
["off", { MAX_THINKING_TOKENS: "0" }],

‎extensions/codex/src/app-server/client.test.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,6 @@ describe("CodexAppServerClient", () => {
438438
});
439439

440440
it.each([
441-
["0.148.0-alpha.9", 0],
442-
["0.148.0-alpha.15", 0],
443441
["0.148.0-alpha.23", 0],
444442
["0.148.0", 0],
445443
["1.0.0", 1],

‎extensions/crabbox/src/crabbox-worker-provider.test.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -531,10 +531,6 @@ describe("Crabbox worker provider", () => {
531531
"bind_xfdesktop_renderer",
532532
);
533533
expect(desktopSetupText).not.toMatch(/pkill -(?:TERM|KILL) -x xfdesktop/u);
534-
expect(desktopSetupText).not.toContain("def ellipse");
535-
expect(desktopSetupText).not.toContain("import struct");
536-
expect(desktopSetupText).not.toContain(".svg");
537-
expect(desktopSetupText).not.toContain("sshUser");
538534
const setup = calls.find(
539535
(call) => call.argv[1] === "run" && String(call.options.input).includes("node run"),
540536
)?.options.input;

‎extensions/discord/src/monitor/message-text.test.ts‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -275,22 +275,6 @@ describe("resolveDiscordMessageText", () => {
275275
).toBe("Breaking\nDetails");
276276
});
277277

278-
it("preserves ordered text from all embeds while skipping textless embeds", () => {
279-
expect(
280-
resolveDiscordMessageText(
281-
asMessage({
282-
content: "",
283-
embeds: [
284-
{ image: { url: "https://cdn.discordapp.com/image.png" } },
285-
{ title: "Breaking", description: "Details" },
286-
{},
287-
{ description: "Follow-up" },
288-
],
289-
}),
290-
),
291-
).toBe("Breaking\nDetails\nFollow-up");
292-
});
293-
294278
it("prefers message content over embed fallback text", () => {
295279
expect(
296280
resolveDiscordMessageText(

‎extensions/discord/src/monitor/native-command.options.test.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -711,10 +711,6 @@ describe("createDiscordNativeCommand option wiring", () => {
711711
ko: "현지화된 설명",
712712
"en-GB": "k".repeat(99),
713713
});
714-
expect(loggerDebugMock).toHaveBeenCalledExactlyOnceWith(
715-
`discord: truncating native command description (command:localized locale:en-GB) from ${longDescription.length} to 100: ${JSON.stringify(longDescription)}`,
716-
);
717-
expect(loggerWarnMock).not.toHaveBeenCalled();
718714
expect(command.serialize()).toEqual({
719715
name: "localized",
720716
description: "Default description",

‎extensions/ollama/src/stream-runtime.test.ts‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,15 +1136,6 @@ describe("buildAssistantMessage", () => {
11361136
});
11371137
});
11381138

1139-
it("rejects malformed stringified tool call arguments", () => {
1140-
const response = createToolCallResponse([
1141-
{ function: { name: "bash", arguments: '{"command":"ls"' } },
1142-
]);
1143-
expect(() => buildAssistantMessage(response, modelInfo)).toThrow(
1144-
"Provider completed tool call with malformed JSON arguments",
1145-
);
1146-
});
1147-
11481139
it("sets all costs to zero for local models", () => {
11491140
const response = createAssistantResponse({ content: "ok" });
11501141
const result = buildAssistantMessage(response, modelInfo);

‎extensions/perplexity/src/perplexity-web-search-provider.test.ts‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -96,29 +96,7 @@ describe("perplexity web search provider", () => {
9696

9797
it.each([
9898
{ name: "missing choices", response: {} },
99-
{ name: "empty choices", response: { choices: [] } },
100-
{ name: "missing message", response: { choices: [{}] } },
101-
{ name: "missing content", response: { choices: [{ message: {} }] } },
102-
{ name: "null content", response: { choices: [{ message: { content: null } }] } },
103-
{ name: "empty content", response: { choices: [{ message: { content: "" } }] } },
10499
{ name: "whitespace content", response: { choices: [{ message: { content: " \n " } }] } },
105-
{
106-
name: "citations without an answer",
107-
response: {
108-
choices: [{ message: { content: null } }],
109-
citations: ["https://example.test/source"],
110-
},
111-
},
112-
{
113-
name: "tool calls without an answer",
114-
response: {
115-
choices: [{ finish_reason: "tool_calls", message: { content: null, tool_calls: [] } }],
116-
},
117-
},
118-
{
119-
name: "audio without an answer",
120-
response: { choices: [{ message: { content: null, audio: { id: "audio-response" } } }] },
121-
},
122100
])("rejects and does not cache chat-completions $name", async ({ name, response }) => {
123101
withTrustedWebSearchEndpointMock.mockReset();
124102
mockPerplexityResponseOnce(response);

‎extensions/policy/src/cli.agent-owner.test.ts‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,6 @@ describe("policy CLI agent ownership", () => {
182182
container: "",
183183
hint: "openclaw --profile testprof agents list",
184184
},
185-
{
186-
name: "watch with an active profile",
187-
args: ["watch", "--agent", "ghost", "--once", "--json"],
188-
profile: "testprof",
189-
container: "",
190-
hint: "openclaw --profile testprof agents list",
191-
},
192185
{
193186
name: "relative compare with an active container",
194187
args: ["compare", "--agent", "ghost", "--baseline", "baseline.policy.jsonc", "--json"],

0 commit comments

Comments
 (0)