Open Bug 1505028 Opened 6 years ago Updated 2 years ago

TelemetrySend.reset() doesn't reset TelemetrySend adequately for tests, resulting in noise

Categories

(Toolkit :: Telemetry, enhancement, P3)

enhancement

Tracking

()

Tracking Status
firefox65 --- affected

People

(Reporter: chutten, Unassigned)

Details

There are quite a few stack traces when running test_TelemetrySend. Some are to be expected because we're testing how things fail (though they could check _testingMode and be a little quieter), but a lot are complaining about removing observers that were never registered. This is because though the tests shut things down properly, many just call TelemetrySend.reset() to start things up again. That's not enough to register the observers, so the next time we get shut down we complain again. Right now this is just noise in the logs. Annoying, but survivable. However, having two separate setup mechanisms might result in odd test failures because we failed to account for one or another piece of state that needed setting up properly. This bug is for looking into TelemetrySend's state, how it is used in tests, and how we might rearchitect things so they're quieter and less prone to stubbed toes.
Priority: -- → P2

Dropping to P3 since this is a test-only method that only the Telemetry tests call.

Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.