Skip to content

Commit 3448b36

Browse files
committed
add scripts
1 parent 7f05b44 commit 3448b36

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

scripts/capture-logs.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
const CDP = require('chrome-remote-interface');
22

33
async 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();

src/static_last_resort.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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")]

0 commit comments

Comments
 (0)