Bug 804480 - Intermittent test_addons_store.js test_addons_store.js | test failed (with xpcshell return code: 0), | Error: 1 or more add-ons failed to install. r=gps
authorRichard Newman <rnewman@mozilla.com>
Tue, 23 Oct 2012 17:44:33 -0700
changeset 111209 f2acc4fa85903e4a70c02047c705ecbb5ef8fc2e
parent 111208 2fe58d68cf8c1f445eb846b23a729d75e4806ece
child 111210 7f88c599f95a5590d15a2ddbd0be8d179c37f999
push id23735
push userryanvm@gmail.com
push dateWed, 24 Oct 2012 18:05:23 +0000
treeherdermozilla-central@6de521e0ae9d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs804480
milestone19.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 804480 - Intermittent test_addons_store.js test_addons_store.js | test failed (with xpcshell return code: 0), | Error: 1 or more add-ons failed to install. r=gps
services/sync/tests/unit/test_addons_store.js
--- a/services/sync/tests/unit/test_addons_store.js
+++ b/services/sync/tests/unit/test_addons_store.js
@@ -434,16 +434,19 @@ add_test(function test_wipe_and_install(
                                       false);
 
   Svc.Prefs.set("addons.ignoreRepositoryChecking", true);
   store.wipe();
 
   let deleted = getAddonFromAddonManagerByID(installed.id);
   do_check_null(deleted);
 
+  // Re-applying the record can require re-fetching the XPI.
+  let server = createAndStartHTTPServer(HTTP_PORT);
+
   store.applyIncoming(record);
 
   let fetched = getAddonFromAddonManagerByID(record.addonID);
   do_check_true(!!fetched);
 
   Svc.Prefs.reset("addons.ignoreRepositoryChecking");
-  run_next_test();
+  server.stop(run_next_test);
 });