mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
test: stabilize full-suite shards (#108093)
This commit is contained in:
@@ -66,8 +66,11 @@ describe("LLM API registry", () => {
|
||||
});
|
||||
|
||||
it("shares default runtime registrations across duplicated module instances", async () => {
|
||||
// File URLs preserve the cache-busting query through Vitest project shards.
|
||||
// Computed relative imports can escape into unresolved Vite /@fs paths.
|
||||
const duplicateRuntime = (await import(
|
||||
["./internal/default-runtime.js", "duplicate-runtime"].join("?")
|
||||
/* @vite-ignore */ new URL("./internal/default-runtime.ts?duplicate-runtime", import.meta.url)
|
||||
.href
|
||||
)) as typeof import("./internal/default-runtime.js");
|
||||
const streamSimple = vi.fn(emptyStream);
|
||||
duplicateRuntime.registerApiProvider(
|
||||
|
||||
@@ -6,9 +6,11 @@ export const agentsAllTestPatterns = ["src/agents/**/*.test.ts"];
|
||||
export const agentsCoreIsolatedTestFiles = [
|
||||
"src/agents/image-generation-task-status.test.ts",
|
||||
"src/agents/media-generation-task-status-shared.test.ts",
|
||||
"src/agents/mcp-http-fetch.test.ts",
|
||||
"src/agents/mcp-transport.test.ts",
|
||||
"src/agents/model-auth-env.provider-aliases.test.ts",
|
||||
"src/agents/model-selection.plugin-runtime.test.ts",
|
||||
"src/agents/models-config.runtime-source-snapshot.test.ts",
|
||||
"src/agents/video-generation-task-status.test.ts",
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user