diff options
Diffstat (limited to 'services/sync/tests/unit/test_service_startOver.js')
-rw-r--r-- | services/sync/tests/unit/test_service_startOver.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/services/sync/tests/unit/test_service_startOver.js b/services/sync/tests/unit/test_service_startOver.js index aa2e53dac..6fb0a66d7 100644 --- a/services/sync/tests/unit/test_service_startOver.js +++ b/services/sync/tests/unit/test_service_startOver.js @@ -28,10 +28,8 @@ function run_test() { run_next_test(); } -add_test(function test_resetLocalData() { - // Set up. - setBasicCredentials("foobar", "blablabla", // Law Blog - "abcdeabcdeabcdeabcdeabcdea"); +add_identity_test(this, function test_resetLocalData() { + yield configureIdentity(); Service.status.enforceBackoff = true; Service.status.backoffInterval = 42; Service.status.minimumNextSync = 23; @@ -61,8 +59,6 @@ add_test(function test_resetLocalData() { do_check_false(Service.status.enforceBackoff); do_check_eq(Service.status.backoffInterval, 0); do_check_eq(Service.status.minimumNextSync, 0); - - run_next_test(); }); add_test(function test_removeClientData() { @@ -73,8 +69,8 @@ add_test(function test_removeClientData() { Service.startOver(); do_check_false(engine.removed); - Service.serverURL = TEST_SERVER_URL; - Service.clusterURL = TEST_CLUSTER_URL; + Service.serverURL = "https://localhost/"; + Service.clusterURL = Service.serverURL; do_check_false(engine.removed); Service.startOver(); |