fix: add error handling for speed test failures#134
fix: add error handling for speed test failures#134Aaradhya-07 wants to merge 1 commit intom-lab:sandbox-roberto-rewritefrom
Conversation
335897e to
27cf6d8
Compare
|
Thanks for the contribution. The idea of handling test failures gracefully is sound - if
This also targets On a broader note: we've been receiving a large volume of unsolicited, sometimes AI-generated PRs with no prior discussion or contact, and as a small team this is not sustainable. We are updating our contribution requirements. Going forward, please coordinate with a maintainer before opening PRs or issues. See https://github.com/m-lab/gsoc#2-engage-with-us for details. |
The startTest() method in app.js awaits runNdt7() and runMSAK() without any error handling. If either test fails — due to a network error, server timeout, or any thrown exception — the UI remains stuck in the "Testing" state with no way for the user to retry. This PR wraps the test execution in a try/catch/finally block: on success, results display as before; on failure, the user sees a "Test failed. Please try again." message; and in both cases, the finally block resets testRunning and updates the UI so the start button becomes clickable again.