Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wptrunner] Optimize server test order (#46331)
`TestEnvironment.ensure_started()` synchronously polls that all servers are started. The non-webtransport-h3 servers are often tested first and immediately fail with "Connection refused", which puts them in the `pending` list. This spins the polling loop at least once and delays startup by at least 0.5s. Run the webtransport-h3 server test first, which blocks [1]. This provides additional time for the non-webtransport-h3 servers to become ready, which means the `TestEnvironment` often only needs to poll once. This speeds up `ensure_started()` from ~2.2s -> ~1.7s and improves wptrunner's interactive UX (https://crbug.com/339299999). No functional change. [1]: https://github.com/web-platform-tests/wpt/blob/431f8d35/tools/webtransport/h3/webtransport_h3_server.py#L593
- Loading branch information