Minor, don't use experimental coroutines in kotlinp test
This commit is contained in:
committed by
Alexander Udalov
parent
4dc304b24e
commit
246346367c
+3
-4
@@ -12,7 +12,6 @@ import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.junit.runners.Parameterized
|
||||
import java.io.File
|
||||
import kotlin.coroutines.experimental.buildSequence
|
||||
|
||||
@RunWith(Parameterized::class)
|
||||
class KotlinpCompilerTestDataTest(private val file: File) {
|
||||
@@ -41,15 +40,15 @@ class KotlinpCompilerTestDataTest(private val file: File) {
|
||||
"compiler/testData/serialization/builtinsSerializer"
|
||||
)
|
||||
|
||||
return buildSequence<Array<*>> {
|
||||
return mutableListOf<Array<*>>().apply {
|
||||
for (baseDir in baseDirs) {
|
||||
for (file in File(baseDir).walkTopDown()) {
|
||||
if (file.extension == "kt") {
|
||||
yield(arrayOf(file))
|
||||
add(arrayOf(file))
|
||||
}
|
||||
}
|
||||
}
|
||||
}.toList()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user