Skip to content

fix: clear result fields on re-run to avoid stale values (#197) - #226

Open
Aaradhya-07 wants to merge 1 commit into
m-lab:mainfrom
Aaradhya-07:fix/clear-stale-results-197
Open

fix: clear result fields on re-run to avoid stale values (#197)#226
Aaradhya-07 wants to merge 1 commit into
m-lab:mainfrom
Aaradhya-07:fix/clear-stale-results-197

Conversation

@Aaradhya-07

@Aaradhya-07 Aaradhya-07 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

startTest() reset the internal JS state (this.measurementResult) but never
cleared the result fields in the DOM. If a re-run failed partway (e.g. ndt7's
download phase succeeded but upload threw), the failed field kept showing the
previous run's value.

This adds a clearResults() helper that blanks s2cRate, c2sRate, latency,
and loss at the start of each run, back to their initial empty state.

fixes #197


This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Stale results shown when re-running test after silent failure

1 participant