Bug 699868 - set serverURL in test_syncscheduler.js. a=test-only,trivial (just like Bug 700071).
authorRichard Newman <rnewman@mozilla.com>
Sun, 06 Nov 2011 17:54:28 -0800
changeset 79871 52c70934f6f2f95f96a1415b449076dba7438e32
parent 79870 9a95c40a398d43dd84afb0658154d5553c5cd770
child 79872 432d201b7606ee586d7edb493046ed06dd5a1e3f
push id21434
push usermak77@bonardo.net
push dateMon, 07 Nov 2011 11:36:49 +0000
treeherdermozilla-central@d60507500886 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only, trivial
bugs699868, 700071
milestone10.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 699868 - set serverURL in test_syncscheduler.js. a=test-only,trivial (just like Bug 700071).
services/sync/tests/unit/test_syncscheduler.js
--- a/services/sync/tests/unit/test_syncscheduler.js
+++ b/services/sync/tests/unit/test_syncscheduler.js
@@ -847,16 +847,17 @@ add_test(function test_sync_503_Retry_Af
   cleanUpAndGo(server);
 });
 
 add_test(function test_loginError_recoverable_reschedules() {
   _("Verify that a recoverable login error schedules a new sync.");
   Service.username = "johndoe";
   Service.password = "ilovejane";
   Service.passphrase = "abcdeabcdeabcdeabcdeabcdea";
+  Service.serverURL  = "http://localhost:8080/";
   Service.clusterURL = "http://localhost:8080/";
   Service.persistLogin();
   Status.resetSync(); // reset Status.login
 
   Svc.Obs.add("weave:service:login:error", function onLoginError() {
     Svc.Obs.remove("weave:service:login:error", onLoginError);
     Utils.nextTick(function aLittleBitAfterLoginError() {
       do_check_eq(Status.login, LOGIN_FAILED_NETWORK_ERROR);
@@ -890,16 +891,17 @@ add_test(function test_loginError_recove
   SyncScheduler.scheduleNextSync(0);
 });
 
 add_test(function test_loginError_fatal_clearsTriggers() {
   _("Verify that a fatal login error clears sync triggers.");
   Service.username = "johndoe";
   Service.password = "ilovejane";
   Service.passphrase = "abcdeabcdeabcdeabcdeabcdea";
+  Service.serverURL  = "http://localhost:8080/";
   Service.clusterURL = "http://localhost:8080/";
   Service.persistLogin();
   Status.resetSync(); // reset Status.login
 
   let server = httpd_setup({
     "/1.1/johndoe/info/collections": httpd_handler(401, "Unauthorized")
   });