File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ export type ChatEventPayload = {
2020
2121export 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 ;
2525const GATEWAY_NODE_STATUS_POLL_MS = 20 ;
2626
2727export 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" , { } ) ;
You can’t perform that action at this time.
0 commit comments