mirror of https://github.com/openclaw/openclaw.git
test(gateway): normalize canvas ws watchdog timeouts
This commit is contained in:
parent
7731f28a24
commit
b2de8719ad
|
|
@ -363,7 +363,7 @@ describe("gateway canvas host auth", () => {
|
|||
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
const ws = new WebSocket(`ws://[::1]:${listener.port}${wsPath}`);
|
||||
const timer = setTimeout(() => reject(new Error("timeout")), 10_000);
|
||||
const timer = setTimeout(() => reject(new Error("timeout")), WS_CONNECT_TIMEOUT_MS);
|
||||
ws.once("open", () => {
|
||||
clearTimeout(timer);
|
||||
ws.terminate();
|
||||
|
|
|
|||
Loading…
Reference in New Issue