mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:50:43 +00:00
test(agents): stabilize context lookup warmup
This commit is contained in:
@@ -20,7 +20,7 @@ vi.mock("../config/config.js", () => ({
|
||||
loadConfig: () => contextTestState.loadConfigImpl(),
|
||||
}));
|
||||
|
||||
vi.mock("./models-config.js", () => ({
|
||||
vi.mock("./models-config.runtime.js", () => ({
|
||||
ensureOpenClawModelsJson: contextTestState.ensureOpenClawModelsJson,
|
||||
}));
|
||||
|
||||
@@ -75,7 +75,9 @@ async function flushAsyncWarmup() {
|
||||
await vi.advanceTimersByTimeAsync(0);
|
||||
return;
|
||||
}
|
||||
await Promise.resolve();
|
||||
await new Promise((r) => setTimeout(r, 0));
|
||||
await Promise.resolve();
|
||||
}
|
||||
|
||||
let contextModule: ContextModule;
|
||||
|
||||
Reference in New Issue
Block a user