Skip to content

Commit e4f8baa

Browse files
committed
fix(file-sort): concurrent modification exception
Signed-off-by: alperozturk <[email protected]>
1 parent 738e020 commit e4f8baa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/androidTest/java/com/nextcloud/utils/FileSortOrderTests.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import java.util.concurrent.CountDownLatch
2323
import java.util.concurrent.TimeUnit
2424
import kotlin.concurrent.thread
2525

26+
@Suppress("MagicNumber", "TooManyFunctions")
2627
class FileSortOrderTests {
2728

2829
private fun tmpFile(prefix: String, lastModified: Long? = null, size: Int? = null): File =
@@ -57,6 +58,7 @@ class FileSortOrderTests {
5758
assertEquals(name, expected, actual)
5859
}
5960

61+
@Suppress("TooGenericExceptionCaught")
6062
private fun testConcurrency(files: MutableList<File>, sorter: FileSortOrder, iterations: Int = 50) {
6163
val latch = CountDownLatch(iterations * 2)
6264
val errors = mutableListOf<Throwable>()

0 commit comments

Comments
 (0)