Bug 638301: Fix test bustage in test_syncengine_sync.js. r=philiKON
authorRichard Newman <rnewman@mozilla.com>
Thu, 07 Apr 2011 10:07:16 -0700
changeset 67771 f9299646f8eb451456a564ce82a3a31d17aa9dcd
parent 67770 d4505c71053eba68f3d827ead50ae7ed782ef527
child 67772 6795af6d25c4cc39418fcdd8e236a0deba15517c
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphiliKON
bugs638301
milestone2.2a1pre
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 638301: Fix test bustage in test_syncengine_sync.js. r=philiKON
services/sync/tests/unit/test_syncengine_sync.js
--- a/services/sync/tests/unit/test_syncengine_sync.js
+++ b/services/sync/tests/unit/test_syncengine_sync.js
@@ -772,20 +772,16 @@ function test_processIncoming_applyIncom
 }
 
 
 function test_processIncoming_failed_records() {
   _("Ensure that failed records from _reconcile and applyIncomingBatch are refetched.");
   Svc.Prefs.set("clusterURL", "http://localhost:8080/");
   Svc.Prefs.set("username", "foo");
 
-  // Pretend to be a mobile client so we can test failed record handling
-  // while batching GETs.
-  Svc.Prefs.set("client.type", "mobile");
-
   // Let's create three and a bit batches worth of server side records.
   let collection = new ServerCollection();
   const NUMBER_OF_RECORDS = MOBILE_BATCH_SIZE * 3 + 5;
   for (var i = 0; i < NUMBER_OF_RECORDS; i++) {
     let id = 'record-no-' + i;
     let payload = encryptPayload({id: id, denomination: "Record No. " + id});
     let wbo = new ServerWBO(id, payload);
     wbo.modified = Date.now()/1000 + 60 * (i - MOBILE_BATCH_SIZE * 3);