Bug 1549859 - set the app.update.BITS.inTrialGroup pref in app update xpcshell tests. r=bytesized

This causes downloadInterruptedNoRecovery.js to intermittently fail on comm-central since BITS ends up enabled.

Differential Revision: https://phabricator.services.mozilla.com/D30284

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Robert Strong 2019-05-07 22:21:51 +00:00
Родитель dbb464327f
Коммит a1731898f8
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -843,6 +843,8 @@ function setupTestCommon(aAppUpdateAutoEnabled = false, aAllowBits = false) {
setAppUpdateAutoSync(aAppUpdateAutoEnabled);
Services.prefs.setBoolPref(PREF_APP_UPDATE_BITS_ENABLED, aAllowBits);
// Set this preference so the trial doesn't override the decision.
Services.prefs.setBoolPref("app.update.BITS.inTrialGroup", aAllowBits);
debugDump("finish - general test setup");
return true;