Skip to content

Commit b25a0d0

Browse files
committed
test(gateway): relax e2e node status waits
1 parent 7d5afcb commit b25a0d0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/helpers/gateway-e2e-harness.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export type ChatEventPayload = {
2020

2121
export type GatewayInstance = OpenClawTestInstance;
2222

23-
const GATEWAY_CONNECT_STATUS_TIMEOUT_MS = 2_000;
24-
const GATEWAY_NODE_STATUS_TIMEOUT_MS = 4_000;
23+
const GATEWAY_CONNECT_STATUS_TIMEOUT_MS = 10_000;
24+
const GATEWAY_NODE_STATUS_TIMEOUT_MS = 15_000;
2525
const GATEWAY_NODE_STATUS_POLL_MS = 20;
2626

2727
export async function spawnGatewayInstance(name: string): Promise<GatewayInstance> {
@@ -151,7 +151,7 @@ async function connectStatusClient(
151151
});
152152

153153
timer = setTimeout(() => {
154-
finish(new Error("timeout waiting for node.list"));
154+
finish(new Error(`timeout waiting for status client hello for ${inst.name}`));
155155
}, timeoutMs);
156156

157157
client.start();
@@ -163,11 +163,11 @@ export async function waitForNodeStatus(
163163
nodeId: string,
164164
timeoutMs = GATEWAY_NODE_STATUS_TIMEOUT_MS,
165165
) {
166-
const deadline = Date.now() + timeoutMs;
167166
const client = await connectStatusClient(
168167
inst,
169168
Math.min(GATEWAY_CONNECT_STATUS_TIMEOUT_MS, timeoutMs),
170169
);
170+
const deadline = Date.now() + timeoutMs;
171171
try {
172172
while (Date.now() < deadline) {
173173
const list = await client.request("node.list", {});

0 commit comments

Comments
 (0)