Skip to content

Commit f6f079b

Browse files
committed
Fix flaky tests
1 parent 8eee303 commit f6f079b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

plugins/dataframe-gradle-plugin/src/integrationTest/kotlin/org/jetbrains/dataframe/gradle/SchemaGeneratorPluginIntegrationTest.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ class SchemaGeneratorPluginIntegrationTest : AbstractDataFramePluginIntegrationT
218218
fun escapeDoubleQuotes(it: Char) = if (it == '"') "\"\"" else it.toString()
219219

220220
val (_, result) = runGradleBuild(":build") { buildDir ->
221-
val dataFile = File(buildDir, "data.csv")
221+
val filename = "data.csv"
222+
val dataFile = File(buildDir, filename)
222223
val notSupportedChars = setOf('\n', '\r')
223224
(Char.MIN_VALUE..Char.MAX_VALUE).asSequence()
224225
.filterNot { it in notSupportedChars }
@@ -239,7 +240,7 @@ class SchemaGeneratorPluginIntegrationTest : AbstractDataFramePluginIntegrationT
239240
import org.jetbrains.kotlinx.dataframe.api.filter
240241
241242
fun main() {
242-
val df = DataFrame.read("$dataFile").cast<Schema>()
243+
val df = DataFrame.read("${TestData.csvName}").cast<Schema>()
243244
}
244245
""".trimIndent())
245246

@@ -264,7 +265,7 @@ class SchemaGeneratorPluginIntegrationTest : AbstractDataFramePluginIntegrationT
264265
265266
dataframes {
266267
schema {
267-
data = "$dataFile"
268+
data = "${TestData.csvName}"
268269
name = "Schema"
269270
packageName = ""
270271
}
@@ -295,7 +296,7 @@ class SchemaGeneratorPluginIntegrationTest : AbstractDataFramePluginIntegrationT
295296
}
296297
297298
fun main() {
298-
val df = DataFrame.read("$dataFile").cast<MySchema>()
299+
val df = DataFrame.read("${TestData.csvName}").cast<MySchema>()
299300
val df1 = df.filter { age != null }
300301
}
301302
""".trimIndent())

0 commit comments

Comments
 (0)