Bug 1648773 - don't fail test_module_LoginStoreTelemetry.js for Thunderbird. r=MattN

Thunderbird is not in the collected products, but the test runs. Avoid the failure by collecting data during the test.

Differential Revision: https://phabricator.services.mozilla.com/D81450
This commit is contained in:
Magnus Melin 2020-06-28 15:51:35 +00:00
Родитель fcc7d40c2f
Коммит 3ece3e66ca
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -10,6 +10,13 @@ const { TelemetryTestUtils } = ChromeUtils.import(
"resource://testing-common/TelemetryTestUtils.jsm"
);
// Enable the collection (during test) for all products so even products
// that don't collect the data will be able to run the test without failure.
Services.prefs.setBoolPref(
"toolkit.telemetry.testing.overrideProductsCheck",
true
);
/**
* Tests collecting telemetry when login store is missing.
*/