Skip to content

Commit 795e952

Browse files
Merge pull request #1919 from nextcloud/sortTags
Tags: sort to have reliable order
2 parents 06e9215 + 46335e4 commit 795e952

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

library/src/androidTest/java/com/owncloud/android/lib/resources/tags/GetTagsRemoteOperationIT.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ class GetTagsRemoteOperationIT : AbstractIT() {
104104
(rootMetadata.data as ArrayList<RemoteFile>)
105105
.find { it.remotePath == tagFolder }
106106
?.tags
107+
tags?.sortBy { it?.color }
107108
assertEquals(2, tags?.size)
108109
assertEquals(null, tags?.first()?.color)
109110
assertEquals(colorWithHex, tags?.last()?.color)

0 commit comments

Comments
 (0)