mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 993084 - Fix experiments health report provider test. r=bsmedberg
This commit is contained in:
parent
af2e25e896
commit
02a9e562fa
@ -1889,7 +1889,7 @@ ExperimentsProvider.prototype = Object.freeze({
|
||||
|
||||
recordLastActiveExperiment: function () {
|
||||
if (!gExperimentsEnabled) {
|
||||
return;
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
if (!this._experiments) {
|
||||
|
@ -27,10 +27,16 @@ add_test(function setup() {
|
||||
do_get_profile();
|
||||
initTestLogging();
|
||||
|
||||
Services.prefs.setBoolPref(PREF_EXPERIMENTS_ENABLED, true);
|
||||
Services.prefs.setBoolPref(PREF_TELEMETRY_ENABLED, true);
|
||||
Services.prefs.setBoolPref(PREF_HEALTHREPORT_ENABLED, true);
|
||||
|
||||
run_next_test();
|
||||
});
|
||||
|
||||
add_task(function test_constructor() {
|
||||
Experiments.instance();
|
||||
yield Experiments._mainTask;
|
||||
let provider = new ExperimentsProvider();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user