mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 02:14:46 +00:00
test: tighten feishu probe request assertion
This commit is contained in:
@@ -138,14 +138,12 @@ describe("probeFeishu", () => {
|
||||
|
||||
await probeFeishu(DEFAULT_CREDS);
|
||||
|
||||
expect(requestFn).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
method: "POST",
|
||||
url: "/open-apis/bot/v1/openclaw_bot/ping",
|
||||
data: { needBotInfo: true },
|
||||
timeout: FEISHU_PROBE_REQUEST_TIMEOUT_MS,
|
||||
}),
|
||||
);
|
||||
expect(requestFn).toHaveBeenCalledWith({
|
||||
method: "POST",
|
||||
url: "/open-apis/bot/v1/openclaw_bot/ping",
|
||||
data: { needBotInfo: true },
|
||||
timeout: FEISHU_PROBE_REQUEST_TIMEOUT_MS,
|
||||
});
|
||||
});
|
||||
|
||||
it("returns timeout error when request exceeds timeout", async () => {
|
||||
|
||||
Reference in New Issue
Block a user