summaryrefslogtreecommitdiffstats
path: root/services/sync/tests/unit/test_service_login.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-08-15 09:58:13 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-08-15 10:36:58 +0200
commit2925fdc3ee9acf17c4aa5494afb7cc18c8dc10bd (patch)
tree75ed3e1b9d8c385535e307a6116b594442a46ac2 /services/sync/tests/unit/test_service_login.js
parent8c34d786e46adbcf5496549cb3fe1898761632d4 (diff)
downloadUXP-2925fdc3ee9acf17c4aa5494afb7cc18c8dc10bd.tar
UXP-2925fdc3ee9acf17c4aa5494afb7cc18c8dc10bd.tar.gz
UXP-2925fdc3ee9acf17c4aa5494afb7cc18c8dc10bd.tar.lz
UXP-2925fdc3ee9acf17c4aa5494afb7cc18c8dc10bd.tar.xz
UXP-2925fdc3ee9acf17c4aa5494afb7cc18c8dc10bd.zip
Issue #1208: Remove `services.sync.enabled` pref.
Sync will not do anything unless specifically set up to do so and at least one engine is enabled, so there's no need for this "master switch" to force it disabled based on engines being disabled (which was its previous function to shortcut syncing in that situation).
Diffstat (limited to 'services/sync/tests/unit/test_service_login.js')
-rw-r--r--services/sync/tests/unit/test_service_login.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/sync/tests/unit/test_service_login.js b/services/sync/tests/unit/test_service_login.js
index 52ee5e63a..2ecb0a377 100644
--- a/services/sync/tests/unit/test_service_login.js
+++ b/services/sync/tests/unit/test_service_login.js
@@ -183,7 +183,7 @@ add_test(function test_login_on_sync() {
// This test exercises these two branches.
_("We're ready to sync if locked.");
- Svc.Prefs.set("enabled", true);
+ Service.enabled = true;
Services.io.offline = false;
Service.scheduler.checkSyncStatus();
do_check_true(scheduleCalled);