mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 13:54:30 +00:00
fix(update): harden global updates
This commit is contained in:
@@ -152,5 +152,14 @@ describe("gateway tool", () => {
|
||||
sessionKey: "agent:main:whatsapp:dm:+15555550123",
|
||||
}),
|
||||
);
|
||||
const updateCall = vi
|
||||
.mocked(callGatewayTool)
|
||||
.mock.calls.find((call) => call[0] === "update.run");
|
||||
expect(updateCall).toBeDefined();
|
||||
if (updateCall) {
|
||||
const [, opts, params] = updateCall;
|
||||
expect(opts).toMatchObject({ timeoutMs: 20 * 60_000 });
|
||||
expect(params).toMatchObject({ timeoutMs: 20 * 60_000 });
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user