mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
fix(feishu): await websocket startup in cleanup test
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user