Skip to content

Commit d61769f

Browse files
committed
fixed test in gradle plugin
1 parent dcf0b82 commit d61769f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugins/dataframe-gradle-plugin/src/test/kotlin/org/jetbrains/dataframe/gradle/DataFrameReadTest.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import io.kotest.assertions.throwables.shouldThrowAny
77
import io.kotest.matchers.shouldBe
88
import kotlinx.serialization.SerializationException
99
import org.jetbrains.kotlinx.dataframe.DataFrame
10+
import org.jetbrains.kotlinx.dataframe.api.isEmpty
1011
import org.jetbrains.kotlinx.dataframe.io.read
1112
import org.jetbrains.kotlinx.dataframe.io.readSqlTable
1213
import org.junit.Test
@@ -42,9 +43,7 @@ class DataFrameReadTest {
4243
fun `file with invalid csv`() {
4344
val temp = Files.createTempDirectory("").toFile()
4445
val invalidCsv = File(temp, "test.csv").also { it.writeText("") }
45-
shouldThrow<IndexOutOfBoundsException> {
46-
DataFrame.read(invalidCsv)
47-
}
46+
DataFrame.read(invalidCsv).isEmpty() shouldBe true
4847
}
4948

5049
@Test

0 commit comments

Comments
 (0)