Implement multipart tests #4

Merged
cyclane merged 2 commits from multipart-tests into main 2023-12-31 09:02:37 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 2a07859e50 - Show all commits

View File

@ -54,7 +54,7 @@ class BackupClientTest {
val bytes = ByteArray(1024 * 1024 * 32) val bytes = ByteArray(1024 * 1024 * 32)
Random.nextBytes(bytes) Random.nextBytes(bytes)
listOf( listOf(
Path("_test.txt").apply { writeBytes(bytes) } Path("_test.txt").apply { writeBytes(bytes) },
) )
}, },
"large directory structure" to { "large directory structure" to {
@ -69,7 +69,7 @@ class BackupClientTest {
Path("_test/another-folder/c.txt").createFile(), Path("_test/another-folder/c.txt").createFile(),
Path("_test/README.md").apply { writeBytes(bytes2) }, Path("_test/README.md").apply { writeBytes(bytes2) },
) )
} },
).map { (name, pathsGen) -> ).map { (name, pathsGen) ->
DynamicTest.dynamicTest(name) { DynamicTest.dynamicTest(name) {
val paths = pathsGen() val paths = pathsGen()