File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const CDP = require ( 'chrome-remote-interface' ) ;
22
33async function captureLogs ( ) {
4- // Retry connection until Chrome is ready
5- // 120 retries × 1000ms = 2 minutes max wait (cargo build can take 30+ seconds)
4+ // Retry connection forever - CI timeout will protect us
65 let client ;
7- for ( let i = 0 ; i < 120 ; i ++ ) {
6+ let attempt = 0 ;
7+ while ( ! client ) {
88 try {
99 client = await CDP ( { port : 9222 } ) ;
10- break ;
1110 } catch ( err ) {
12- if ( i % 10 === 0 ) {
13- console . error ( `CDP: Waiting for Chrome (attempt ${ i + 1 } /120)...` ) ;
11+ attempt ++ ;
12+ if ( attempt % 10 === 0 ) {
13+ console . error ( `CDP: Waiting for Chrome (attempt ${ attempt } )...` ) ;
1414 }
1515 await new Promise ( r => setTimeout ( r , 1000 ) ) ;
1616 }
1717 }
1818
19- if ( ! client ) {
20- console . error ( 'Failed to connect to Chrome on port 9222' ) ;
21- process . exit ( 1 ) ;
22- }
23-
2419 const { Log, Runtime} = client ;
2520
2621 await Log . enable ( ) ;
Original file line number Diff line number Diff line change @@ -425,8 +425,6 @@ mod tests {
425425 }
426426
427427 /// Test 4: Does executor work inside a spawned thread?
428- /// DISABLED ON WASM32: Known to hang - worker thread exits before spawn_local runs
429- #[ cfg( not( target_arch = "wasm32" ) ) ]
430428 #[ test_executors:: async_test]
431429 async fn isolation_test_executor_in_thread ( ) {
432430 #[ cfg( target_arch = "wasm32" ) ]
You can’t perform that action at this time.
0 commit comments