Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/android-library.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobiasKaminsky <tobias@kaminsky.me>2022-11-03 12:25:29 +0300
committertobiasKaminsky <tobias@kaminsky.me>2022-11-03 12:26:10 +0300
commita9670b27d1aee38277ed6320630b01821dc38b24 (patch)
tree0f7560c83ce970252dc414e55ff3cac76ce4daa0
parent9f1903044d088728039b0d69a1bee522dfa57046 (diff)
add exemption for NC16testNC16
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
-rw-r--r--library/src/androidTest/java/com/owncloud/android/lib/resources/files/SearchRemoteOperationIT.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/library/src/androidTest/java/com/owncloud/android/lib/resources/files/SearchRemoteOperationIT.java b/library/src/androidTest/java/com/owncloud/android/lib/resources/files/SearchRemoteOperationIT.java
index c71f880a..ab079cac 100644
--- a/library/src/androidTest/java/com/owncloud/android/lib/resources/files/SearchRemoteOperationIT.java
+++ b/library/src/androidTest/java/com/owncloud/android/lib/resources/files/SearchRemoteOperationIT.java
@@ -222,7 +222,14 @@ public class SearchRemoteOperationIT extends AbstractIT {
assertEquals(2, result.getResultData().size());
assertEquals(remotePath, result.getResultData().get(0).getRemotePath());
- assertEquals(sharedRemotePath, result.getResultData().get(1).getRemotePath());
+
+ if (capability.getVersion().isNewerOrEqual(OwnCloudVersion.nextcloud_17)) {
+ assertEquals(sharedRemotePath, result.getResultData().get(1).getRemotePath());
+ } else {
+ // on NC16 we have a bug that each file ends with "/"
+ sharedRemotePath += "/";
+ assertEquals(sharedRemotePath, result.getResultData().get(1).getRemotePath());
+ }
}
/**