From 9793510ef58ddacc12ed91c3075fb41157376bc0 Mon Sep 17 00:00:00 2001 From: Gavin Sharp Date: Mon, 5 Jan 2015 13:04:05 -0800 Subject: [PATCH] Bug 1117158 followup: disable GeoIP lookup in services/healthreport/tests/xpcshell/test_provider_searches.js to fix xpcshell bustage on CLOSED TREE --- .../healthreport/tests/xpcshell/test_provider_searches.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/healthreport/tests/xpcshell/test_provider_searches.js b/services/healthreport/tests/xpcshell/test_provider_searches.js index 54aa9dde908a..a4f6c912cf3a 100644 --- a/services/healthreport/tests/xpcshell/test_provider_searches.js +++ b/services/healthreport/tests/xpcshell/test_provider_searches.js @@ -33,6 +33,11 @@ MockSearchesProvider.prototype = { }; function run_test() { + // Tell the search service we are running in the US. This also has the + // desired side-effect of preventing our geoip lookup. + Services.prefs.setBoolPref("browser.search.isUS", true); + Services.prefs.setCharPref("browser.search.countryCode", "US"); Services.prefs.setCharPref("browser.search.geoip.url", ""); + run_next_test(); }