From 4f594d45ee08503ec2c8db729355f34bf673f5e3 Mon Sep 17 00:00:00 2001 From: Eduard Gurskiy Date: Tue, 7 Jan 2025 14:53:15 +0100 Subject: [PATCH] test: Fix failing migration test for Windows (#2347) --- .../exposed/sql/tests/shared/ddl/DatabaseMigrationTests.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/ddl/DatabaseMigrationTests.kt b/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/ddl/DatabaseMigrationTests.kt index a0fd642449..625d6221c8 100644 --- a/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/ddl/DatabaseMigrationTests.kt +++ b/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/ddl/DatabaseMigrationTests.kt @@ -57,7 +57,7 @@ class DatabaseMigrationTests : DatabaseTestsBase() { withTables(excludeSettings = listOf(TestDB.SQLITE), noPKTable) { val script = MigrationUtils.generateMigrationScript(singlePKTable, scriptDirectory = scriptDirectory, scriptName = scriptName, withLogs = false) assertTrue(script.exists()) - assertEquals("src/test/resources/$scriptName.sql", script.path) + assertEquals("src${File.separator}test${File.separator}resources${File.separator}$scriptName.sql", script.path) val expectedStatements: List = MigrationUtils.statementsRequiredForDatabaseMigration(singlePKTable, withLogs = false) assertEquals(1, expectedStatements.size)