mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:30:43 +00:00
test(auto-reply): reset inbound dedupe for acp abort
This commit is contained in:
@@ -27,6 +27,7 @@ import { buildTestCtx } from "./test-ctx.js";
|
||||
|
||||
let dispatchReplyFromConfig: typeof import("./dispatch-from-config.js").dispatchReplyFromConfig;
|
||||
let tryDispatchAcpReplyHook: typeof import("../../plugin-sdk/acp-runtime.js").tryDispatchAcpReplyHook;
|
||||
let resetInboundDedupe: typeof import("./inbound-dedupe.js").resetInboundDedupe;
|
||||
|
||||
function shouldUseAcpReplyDispatchHook(eventUnknown: unknown): boolean {
|
||||
const event = eventUnknown as {
|
||||
@@ -128,10 +129,12 @@ describe("dispatchReplyFromConfig ACP abort", () => {
|
||||
beforeAll(async () => {
|
||||
({ dispatchReplyFromConfig } = await import("./dispatch-from-config.js"));
|
||||
({ tryDispatchAcpReplyHook } = await import("../../plugin-sdk/acp-runtime.js"));
|
||||
({ resetInboundDedupe } = await import("./inbound-dedupe.js"));
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
setDiscordTestRegistry();
|
||||
resetInboundDedupe();
|
||||
acpManagerRuntimeMocks.getAcpSessionManager.mockReset();
|
||||
acpManagerRuntimeMocks.getAcpSessionManager.mockReturnValue(createMockAcpSessionManager());
|
||||
hookMocks.runner.hasHooks.mockReset();
|
||||
|
||||
Reference in New Issue
Block a user