mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-16 19:40:45 +00:00
test: tighten discord queue timeout assertions
This commit is contained in:
@@ -440,7 +440,7 @@ describe("createDiscordMessageHandler queue behavior", () => {
|
||||
await flushQueueWork();
|
||||
|
||||
expect(processDiscordMessageMock).toHaveBeenCalledTimes(1);
|
||||
expect(capturedAbortSignals[0]?.aborted).not.toBe(true);
|
||||
expect(capturedAbortSignals).toEqual([undefined]);
|
||||
expect(params.runtime.error).not.toHaveBeenCalledWith(expect.stringContaining("timed out"));
|
||||
|
||||
firstRun.resolve();
|
||||
@@ -448,7 +448,7 @@ describe("createDiscordMessageHandler queue behavior", () => {
|
||||
await flushQueueWork();
|
||||
|
||||
expect(processDiscordMessageMock).toHaveBeenCalledTimes(2);
|
||||
expect(capturedAbortSignals[1]?.aborted).not.toBe(true);
|
||||
expect(capturedAbortSignals).toEqual([undefined, undefined]);
|
||||
|
||||
secondRun.resolve();
|
||||
await secondRun.promise;
|
||||
|
||||
Reference in New Issue
Block a user