Skip to content

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

@sridhar-panigrahi

Description

@sridhar-panigrahi

Summary

When running the speed test multiple times in the same session, previous results are not cleared from the UI.

If either NDT7 or MSAK fails silently during a re-run (e.g., due to a brief network interruption), the UI shows:

  • Fresh results for the test that succeeded
  • Old results from the previous run for the test that failed
  • Status as "Complete"
  • No visible error

This makes stale data appear as current results.


Expected Behavior

On re-run:

  • All result fields should be cleared before the new test starts.
  • If a test fails, its column should show an empty or error state.
  • Users should never see results from a previous run.

Actual Behavior

  • Internal JS state is reset.
  • Result DOM elements are not cleared.
  • If a test fails silently, its previous values remain visible.
  • The UI shows "Complete" with no indication of failure.

Root Cause

In src/js/app.js, startTest() resets state:

this.measurementResult = {};
this.msakResult = {};

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions