Files
Jens GeyerandClaude Opus 5.5 cd64c70d93 THRIFT-6435: Wait until the browser-test servers listen instead of sleeping
Client: js,ts

The test task in lib/ts and lib/js starts the Node test servers
asynchronously and then gave them one fixed second before headless Chrome
loaded the first page. On a slow CI runner that is not always enough, and
lib-ts failed with net::ERR_CONNECTION_REFUSED at
http://localhost:8089/test.html.

The wait task now tries to connect to each server port every 100 ms and
continues once all of them accept connections. A server that is still not
listening after 30 seconds fails the task with a message naming its port,
instead of surfacing as a refused connection in the browser test.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-20 22:39:29 +02:00
..