Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add request timeout to license URL check (#1700)
Resolves #1689 By default, Playwright limits each test to a 30s runtime. Unfortunately, when the the test reaches its timeout, it displays an opaque error message: <img width="331" alt="Screen Shot 2023-12-05 at 14 42 47" src="https://github.com/tiny-pilot/tinypilot/assets/6730025/e44424f0-89f3-4569-98b2-7dd3a8dde7ee"> In this case, the test timed out because one of the license URLs took >30s to respond. To avoid this issue, I've applied a 10s timeout to each license URL check. ### Notes 1. I couldn't find a way to catch the actual test's [TimeoutError](https://playwright.dev/docs/api/class-timeouterror) or how to set a custom test timeout message 🤷♂️ 2. I tested this PR via * #1701 * #1702 <a data-ca-tag href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1700"><img src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review on CodeApprove" /></a>
- Loading branch information