No issue: fix glean metrics tests for expired metrics (#20621)

* Remove references to preferences.open_links_in_private and preferences.private_search_suggestions in tests. These metrics have been expired and may be removed.

* Add ignores for performance metrics that have expired.

* Remove tabs_tray.cfr.dismiss and tabs_tray.cfr.go_to_settings telemetry probes.

* Remove metrics controller from signature and remove in tests
pull/393/head
Elise Richards 3 years ago
parent 2b26e9cdfe
commit 3f0590de38
No known key found for this signature in database
GPG Key ID: C9966B1DB89463B7

@ -16,6 +16,7 @@ import mozilla.components.support.test.robolectric.testContext
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
@ -41,6 +42,7 @@ class StorageStatsMetricsTest {
}
@Test
@Ignore("These metrics have expired.")
fun `WHEN reporting THEN the values from the storageStats are accumulated`() {
every { storageStats.appBytes } returns 100
every { storageStats.cacheBytes } returns 200
@ -54,6 +56,7 @@ class StorageStatsMetricsTest {
}
@Test
@Ignore("These metrics have expired.")
fun `WHEN reporting THEN the query duration is measured`() {
StorageStatsMetrics.reportSync(mockContext)
assertTrue(Metrics.queryStatsDuration.testHasValue())

Loading…
Cancel
Save