Bug 911474 - Fix intermittent test_DownloadIntegration.js failure. r=enn, a=test-only
authorPaolo Amadini <paolo.mozmail@amadzone.org>
Mon, 23 Sep 2013 15:24:51 +0200
changeset 160408 034e248039f617b0c5935550196e80b17810069d
parent 160407 43e20177618b69e4555fa48f63a17f3176f8ce6b
child 160409 a59d0e8196a05f54c876ed3def373108a53e5d57
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersenn, test-only
bugs911474
milestone26.0a2
Bug 911474 - Fix intermittent test_DownloadIntegration.js failure. r=enn, a=test-only
toolkit/components/jsdownloads/test/unit/test_DownloadIntegration.js
--- a/toolkit/components/jsdownloads/test/unit/test_DownloadIntegration.js
+++ b/toolkit/components/jsdownloads/test/unit/test_DownloadIntegration.js
@@ -201,19 +201,20 @@ add_task(function test_getTemporaryDownl
 
 /**
  * Tests notifications prompts when observers are notified if there are public
  * and private active downloads.
  */
 add_task(function test_notifications()
 {
   enableObserversTestMode();
-  mustInterruptResponses();
 
   for (let isPrivate of [false, true]) {
+    mustInterruptResponses();
+
     let list = yield promiseNewList(isPrivate);
     let download1 = yield promiseNewDownload(httpUrl("interruptible.txt"));
     let download2 = yield promiseNewDownload(httpUrl("interruptible.txt"));
     let download3 = yield promiseNewDownload(httpUrl("interruptible.txt"));
     let promiseAttempt1 = download1.start();
     let promiseAttempt2 = download2.start();
     download3.start();