Bug 1151994 - test_telemetryPing.js in asyncSetup if datareporting.healthreport.service.enabled is undefined or false. r=vdjeric,a=lmandel
authorSebastian Hengst <archaeopteryx@coole-files.de>
Tue, 07 Apr 2015 20:28:12 +0200
changeset 265763 7dee328009b7f099d7cf77c36eb5a31cb04c177b
parent 265762 625de3552971c50bc348b85267db0b06b233992e
child 265764 046e84e01fa69eadc8637cf0227c9df9fbe6a5b3
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvdjeric, lmandel
bugs1151994
milestone39.0a2
Bug 1151994 - test_telemetryPing.js in asyncSetup if datareporting.healthreport.service.enabled is undefined or false. r=vdjeric,a=lmandel
toolkit/components/telemetry/tests/unit/test_TelemetryPing.js
--- a/toolkit/components/telemetry/tests/unit/test_TelemetryPing.js
+++ b/toolkit/components/telemetry/tests/unit/test_TelemetryPing.js
@@ -169,16 +169,17 @@ function run_test() {
   do_test_pending();
 
   // Addon manager needs a profile directory
   do_get_profile();
   loadAddonManager("xpcshell@tests.mozilla.org", "XPCShell", "1", "1.9.2");
 
   Services.prefs.setBoolPref(PREF_ENABLED, true);
   Services.prefs.setBoolPref(PREF_FHR_UPLOAD_ENABLED, true);
+  Services.prefs.setBoolPref(PREF_FHR_SERVICE_ENABLED, true);
 
   // Send the needed startup notifications to the datareporting service
   // to ensure that it has been initialized.
   if (HAS_DATAREPORTINGSERVICE) {
     gDatareportingService.observe(null, "app-startup", null);
     gDatareportingService.observe(null, "profile-after-change", null);
   }