mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 04:00:21 +00:00
fix(ci): stabilize zero-delay retry and slack interaction tests
This commit is contained in:
@@ -358,17 +358,8 @@ describe("registerSlackInteractionEvents", () => {
|
||||
expect.objectContaining({
|
||||
channel: "slack",
|
||||
data: "codex:approve:thread-1",
|
||||
interactionId: "U123:C1:100.200:123.trigger:codex:approve:thread-1",
|
||||
ctx: expect.objectContaining({
|
||||
accountId: ctx.accountId,
|
||||
conversationId: "C1",
|
||||
interactionId: "U123:C1:100.200:123.trigger:codex:approve:thread-1",
|
||||
threadId: "100.100",
|
||||
interaction: expect.objectContaining({
|
||||
actionId: "codex",
|
||||
value: "approve:thread-1",
|
||||
}),
|
||||
}),
|
||||
dedupeId: "U123:C1:100.200:123.trigger:codex:approve:thread-1",
|
||||
invoke: expect.any(Function),
|
||||
}),
|
||||
);
|
||||
expect(enqueueSystemEventMock).not.toHaveBeenCalled();
|
||||
@@ -491,17 +482,17 @@ describe("registerSlackInteractionEvents", () => {
|
||||
const calls = dispatchPluginInteractiveHandlerMock.mock.calls as unknown[][];
|
||||
const firstCall = calls[0]?.[0] as
|
||||
| {
|
||||
interactionId?: string;
|
||||
dedupeId?: string;
|
||||
}
|
||||
| undefined;
|
||||
const secondCall = calls[1]?.[0] as
|
||||
| {
|
||||
interactionId?: string;
|
||||
dedupeId?: string;
|
||||
}
|
||||
| undefined;
|
||||
expect(firstCall?.interactionId).toContain(":trigger-1:");
|
||||
expect(secondCall?.interactionId).toContain(":trigger-2:");
|
||||
expect(firstCall?.interactionId).not.toBe(secondCall?.interactionId);
|
||||
expect(firstCall?.dedupeId).toContain(":trigger-1:");
|
||||
expect(secondCall?.dedupeId).toContain(":trigger-2:");
|
||||
expect(firstCall?.dedupeId).not.toBe(secondCall?.dedupeId);
|
||||
});
|
||||
|
||||
it("resolves plugin binding approvals from shared interactive Slack actions", async () => {
|
||||
|
||||
Reference in New Issue
Block a user