Index: chrome/test/functional/prefs.py |
diff --git a/chrome/test/functional/prefs.py b/chrome/test/functional/prefs.py |
index 6ac9dce58cd0433f5355de0b7eb2657c5cfac395..79a2112bca06759d7238926df5bd243c7d73b083 100644 |
--- a/chrome/test/functional/prefs.py |
+++ b/chrome/test/functional/prefs.py |
@@ -101,8 +101,9 @@ class PrefsTest(pyauto.PyUITest): |
os.makedirs(new_dl_dir) |
# Set pref to download in new_dl_dir |
self.SetPrefs(pyauto.kDownloadDefaultDirectory, new_dl_dir) |
+ pre_download_ids = [x['id'] for x in self.GetDownloadsInfo().Downloads()] |
self.DownloadAndWaitForStart(file_url) |
- self.WaitForAllDownloadsToComplete() |
+ self.WaitForAllDownloadsToComplete(pre_download_ids) |
self.assertTrue(os.path.exists(downloaded_pkg)) |
shutil.rmtree(new_dl_dir, ignore_errors=True) # cleanup |