mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
fix: keep runtime task test harness behind task seams
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { vi } from "vitest";
|
||||
import { resetTaskFlowRegistryForTests } from "../../tasks/task-flow-registry.js";
|
||||
import {
|
||||
resetTaskRegistryDeliveryRuntimeForTests,
|
||||
resetTaskRegistryForTests,
|
||||
setTaskRegistryDeliveryRuntimeForTests,
|
||||
} from "../../tasks/task-registry.js";
|
||||
} from "../../tasks/runtime-internal.js";
|
||||
import { resetTaskFlowRegistryForTests } from "../../tasks/task-flow-runtime-internal.js";
|
||||
|
||||
const runtimeTaskMocks = vi.hoisted(() => ({
|
||||
sendMessageMock: vi.fn(),
|
||||
|
||||
@@ -21,9 +21,11 @@ export {
|
||||
markTaskTerminalByRunId,
|
||||
maybeDeliverTaskTerminalUpdate,
|
||||
recordTaskProgressByRunId,
|
||||
resetTaskRegistryDeliveryRuntimeForTests,
|
||||
resolveTaskForLookupToken,
|
||||
resetTaskRegistryForTests,
|
||||
isParentFlowLinkError,
|
||||
setTaskRegistryDeliveryRuntimeForTests,
|
||||
setTaskCleanupAfterById,
|
||||
setTaskProgressById,
|
||||
setTaskRunDeliveryStatusByRunId,
|
||||
|
||||
Reference in New Issue
Block a user