mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 13:04:41 +00:00
fix(feishu): await websocket startup in cleanup test
This commit is contained in:
parent
514328a9ad
commit
d425aa0912
1 changed files with 4 additions and 2 deletions
|
|
@ -65,8 +65,10 @@ describe("feishu websocket cleanup", () => {
|
|||
eventDispatcher: {} as never,
|
||||
});
|
||||
|
||||
expect(wsClient.start).toHaveBeenCalledTimes(1);
|
||||
expect(wsClients.get(accountId)).toBe(wsClient);
|
||||
await vi.waitFor(() => {
|
||||
expect(wsClient.start).toHaveBeenCalledTimes(1);
|
||||
expect(wsClients.get(accountId)).toBe(wsClient);
|
||||
});
|
||||
|
||||
abortController.abort();
|
||||
await monitorPromise;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue