Follow-up to bug 1099128 - temporarily turn off rooms for mochitests to fix bc1 test failures. rs+a=bustage-fix

This commit is contained in:
Mark Banner 2014-11-19 09:55:34 +00:00
parent bddbb75ccc
commit 200e49a7be

View File

@ -77,6 +77,11 @@ function promiseGetMozLoopAPI() {
* This assumes that the tests are running in a generatorTest. * This assumes that the tests are running in a generatorTest.
*/ */
function loadLoopPanel(aOverrideOptions = {}) { function loadLoopPanel(aOverrideOptions = {}) {
Services.prefs.setBoolPref("loop.rooms.enabled", false);
registerCleanupFunction(function() {
Services.prefs.clearUserPref("loop.rooms.enabled");
});
// Set prefs to ensure we don't access the network externally. // Set prefs to ensure we don't access the network externally.
Services.prefs.setCharPref("services.push.serverURL", aOverrideOptions.pushURL || "ws://localhost/"); Services.prefs.setCharPref("services.push.serverURL", aOverrideOptions.pushURL || "ws://localhost/");
Services.prefs.setCharPref("loop.server", aOverrideOptions.loopURL || "http://localhost/"); Services.prefs.setCharPref("loop.server", aOverrideOptions.loopURL || "http://localhost/");