Skip to content

Commit 38fa3da

Browse files
committed
DownloadIT now works for all build variants
Signed-off-by: Philipp Hasper <[email protected]>
1 parent ae75e21 commit 38fa3da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/androidTest/java/com/owncloud/android/DownloadIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ private void verifyDownload(OCFile file1, OCFile file2) {
9898
assertTrue(new File(file2.getStoragePath()).exists());
9999

100100
// test against hardcoded path to make sure that it is correct
101-
assertEquals("/storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/" +
101+
assertEquals("/storage/emulated/0/Android/media/"+targetContext.getPackageName()+"/nextcloud/" +
102102
Uri.encode(account.name, "@") + "/testUpload/nonEmpty.txt",
103103
file1.getStoragePath());
104-
assertEquals("/storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/" +
104+
assertEquals("/storage/emulated/0/Android/media/"+targetContext.getPackageName()+"/nextcloud/" +
105105
Uri.encode(account.name, "@") + "/testUpload/nonEmpty2.txt",
106106
file2.getStoragePath());
107107
}

0 commit comments

Comments
 (0)