mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 01:28:27 +00:00
test: make gateway connectReq timeout configurable
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
||||
|
||||
installGatewayTestHooks({ scope: "suite" });
|
||||
const NODE_CONNECT_TIMEOUT_MS = 3_000;
|
||||
const CONNECT_REQ_TIMEOUT_MS = 2_000;
|
||||
|
||||
async function expectNoForwardedInvoke(hasInvoke: () => boolean): Promise<void> {
|
||||
// Yield a couple of macrotasks so any accidental async forwarding would fire.
|
||||
@@ -107,6 +108,7 @@ describe("node.invoke approval bypass", () => {
|
||||
token: "secret",
|
||||
scopes,
|
||||
...(resolveDevice ? { device: resolveDevice(await nonce) } : {}),
|
||||
timeoutMs: CONNECT_REQ_TIMEOUT_MS,
|
||||
});
|
||||
return { ws, res };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user