mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 09:17:51 +00:00
test: clarify voice call webhook concurrency assertions
This commit is contained in:
parent
2bd4529dfd
commit
5604cbd3ef
1 changed files with 2 additions and 2 deletions
|
|
@ -1121,7 +1121,7 @@ describe("VoiceCallWebhookServer pre-auth webhook guards", () => {
|
|||
unblockReadBodies();
|
||||
|
||||
const settled = await Promise.all(inFlightRequests);
|
||||
expect(settled.every((response) => response.status === 200)).toBe(true);
|
||||
expect(settled.map((response) => response.status)).toEqual(Array(8).fill(200));
|
||||
} finally {
|
||||
unblockReadBodies();
|
||||
readBodySpy.mockRestore();
|
||||
|
|
@ -1196,7 +1196,7 @@ describe("VoiceCallWebhookServer pre-auth webhook guards", () => {
|
|||
unblockReadBodies();
|
||||
|
||||
const settled = await Promise.all(inFlightRequests);
|
||||
expect(settled.every((response) => response.statusCode === 200)).toBe(true);
|
||||
expect(settled.map((response) => response.statusCode)).toEqual(Array(8).fill(200));
|
||||
} finally {
|
||||
unblockReadBodies();
|
||||
readBodySpy.mockRestore();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue