From 12f5dc46aaa8e28cabfbe25d55f0af68f24ab306 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Thu, 17 Jan 2013 17:26:51 -0800 Subject: Better handling of retryable errors. Now the final errors are always thrown, and the outer code decides how to handle them as retries. Also clean up method signatures. Bug: 8022478 Change-Id: I4e7e43be793294ab837370df521e7c381e0bb6c3 --- tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/src') diff --git a/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java b/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java index 157cce89..09739c0d 100644 --- a/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java +++ b/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java @@ -398,7 +398,7 @@ public class PublicApiFunctionalTest extends AbstractPublicApiTest { public void testNoContentLength() throws Exception { enqueueResponse(buildEmptyResponse(HTTP_OK).removeHeader("Content-length")); - runSimpleFailureTest(DownloadManager.ERROR_HTTP_DATA_ERROR); + runSimpleFailureTest(DownloadManager.ERROR_CANNOT_RESUME); } public void testInsufficientSpace() throws Exception { -- cgit v1.2.3