diff options
Diffstat (limited to 'tests/functional/com/android/documentsui/FileCopyUiTest.java')
-rw-r--r-- | tests/functional/com/android/documentsui/FileCopyUiTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/com/android/documentsui/FileCopyUiTest.java b/tests/functional/com/android/documentsui/FileCopyUiTest.java index 3d18b8fd3..d78f3f07d 100644 --- a/tests/functional/com/android/documentsui/FileCopyUiTest.java +++ b/tests/functional/com/android/documentsui/FileCopyUiTest.java @@ -61,7 +61,7 @@ public class FileCopyUiTest extends ActivityTest<FilesActivity> { private static final String TARGET_FOLDER = "test_folder"; - private static final int TARGET_COUNT = 1000; + private static final int TARGET_COUNT = 100; private static final int WAIT_TIME_SECONDS = 180; @@ -260,7 +260,7 @@ public class FileCopyUiTest extends ActivityTest<FilesActivity> { Uri uri = helper.createDocument(root, "image/png", fileName); byte[] buff = new byte[1024]; while ((read = in.read(buff)) > 0) { - helper.writeAppendDocument(uri, buff); + helper.writeAppendDocument(uri, buff, read); } buff = null; } |