diff options
author | Neal Nguyen <tommyn@google.com> | 2010-10-04 11:13:33 -0700 |
---|---|---|
committer | Neal Nguyen <tommyn@google.com> | 2010-10-04 11:59:28 -0700 |
commit | 63e5d79a163461651cd8bd89d3de691ef7649109 (patch) | |
tree | 275d09af44ef4efcf9364f943082b97f864e752c /core/tests/coretests/src/android/app/DownloadManagerIntegrationTest.java | |
parent | 4fc04f160f5ad99ce618084c689b239a2644deca (diff) | |
download | frameworks_base-63e5d79a163461651cd8bd89d3de691ef7649109.zip frameworks_base-63e5d79a163461651cd8bd89d3de691ef7649109.tar.gz frameworks_base-63e5d79a163461651cd8bd89d3de691ef7649109.tar.bz2 |
Fixing some flakiness of some DL Manager tests.
Change-Id: Ie9ad4d20b8f980480ce730c7c95876d0954db8b2
Diffstat (limited to 'core/tests/coretests/src/android/app/DownloadManagerIntegrationTest.java')
-rw-r--r-- | core/tests/coretests/src/android/app/DownloadManagerIntegrationTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/tests/coretests/src/android/app/DownloadManagerIntegrationTest.java b/core/tests/coretests/src/android/app/DownloadManagerIntegrationTest.java index 27eea4d..cb7c2d2 100644 --- a/core/tests/coretests/src/android/app/DownloadManagerIntegrationTest.java +++ b/core/tests/coretests/src/android/app/DownloadManagerIntegrationTest.java @@ -61,7 +61,6 @@ public class DownloadManagerIntegrationTest extends DownloadManagerBaseTest { Environment.getRootDirectory().getAbsolutePath(); private final static String CACHE_DIR = Environment.getDownloadCacheDirectory().getAbsolutePath(); - protected MultipleDownloadsCompletedReceiver mReceiver = null; /** * {@inheritDoc} @@ -72,7 +71,6 @@ public class DownloadManagerIntegrationTest extends DownloadManagerBaseTest { setWiFiStateOn(true); mServer.play(); removeAllCurrentDownloads(); - mReceiver = registerNewMultipleDownloadsReceiver(); } /** @@ -270,7 +268,7 @@ public class DownloadManagerIntegrationTest extends DownloadManagerBaseTest { try { verifyInt(cursor, DownloadManager.COLUMN_STATUS, DownloadManager.STATUS_FAILED); verifyInt(cursor, DownloadManager.COLUMN_REASON, - DownloadManager.ERROR_FILE_ERROR); + DownloadManager.ERROR_FILE_ALREADY_EXISTS); } finally { cursor.close(); } @@ -429,6 +427,7 @@ public class DownloadManagerIntegrationTest extends DownloadManagerBaseTest { } } + Log.i(LOG_TAG, "Done creating filler file."); assertTrue(DOWNLOAD_FILE_SIZE > (fs.getAvailableBlocks() * blockSize)); byte[] blobData = generateData(DOWNLOAD_FILE_SIZE, DataType.TEXT); long dlRequest = doBasicDownload(blobData); |