Skip to content

Commit a332ead

Browse files
authored
Fix browser.test_audioworklet_worker instability on Chrome (#26841)
Fix browser.test_audioworklet_worker instability on Chrome. Chrome has some kind of network throttling mechanism, which prevents the Wasm Worker from being able to start up in the test browser.test_audioworklet_worker. There is no reason to keep fetching /check every 10 milliseconds (except for performance). Reduce the fetch interval to a more modest rate of 5 fetches per second. The browser test suite has ~150 tests, so this can slow down the test harness by at most 30 seconds.
1 parent f92e9e1 commit a332ead

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/browser_harness.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
// should load a new page, since the iframe doesn't currently have
3939
// a way to tell us it completed (even if it did, we'd need to poll
4040
// the server to know when the next test page is ready to load).
41-
setTimeout(check, 10);
41+
// (A timeout value of 100msecs has been seen to stall test
42+
// browser.test_audio_worklet_worker on Chrome)
43+
setTimeout(check, 200);
4244
})
4345
.catch(() => {
4446
document.body.innerHTML = 'Tests complete. View log in console.';

0 commit comments

Comments
 (0)