mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
test: remove managed image cache sleep
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
const emitCliBannerMock = vi.hoisted(() => vi.fn());
|
||||
const ensureConfigReadyMock = vi.hoisted(() => vi.fn(async () => {}));
|
||||
const ensureConfigReadyMock = vi.hoisted(() =>
|
||||
vi.fn(async (_params: { runtime?: unknown; commandPath?: unknown }) => {}),
|
||||
);
|
||||
const ensurePluginRegistryLoadedMock = vi.hoisted(() => vi.fn());
|
||||
const findRoutedCommandMock = vi.hoisted(() => vi.fn());
|
||||
const runRouteMock = vi.hoisted(() => vi.fn(async () => true));
|
||||
|
||||
@@ -393,7 +393,6 @@ describe("handleManagedOutgoingImageHttpRequest", () => {
|
||||
expect(second.result.statusCode).toBe(200);
|
||||
expect(readSessionMessagesMock).toHaveBeenCalledTimes(1);
|
||||
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
await fs.writeFile(sessionFile, '{"message":{}}\n{"message":{"content":"updated"}}\n', "utf-8");
|
||||
|
||||
const third = await requestManagedImage({
|
||||
|
||||
Reference in New Issue
Block a user