diff --git a/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/sqlite/ForeignKeyConstraintTests.kt b/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/sqlite/ForeignKeyConstraintTests.kt index fa76a47a5e..f214ad93d6 100644 --- a/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/sqlite/ForeignKeyConstraintTests.kt +++ b/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/sqlite/ForeignKeyConstraintTests.kt @@ -184,23 +184,15 @@ class ForeignKeyConstraintTests : DatabaseTestsBase() { override val primaryKey = PrimaryKey(id) } - withTables(category, item) { testDb -> + withTables(category, item) { if (currentDialectTest.supportsOnUpdate) { val constraints = connection.metadata { tableConstraints(listOf(item)) } constraints.values.forEach { list -> list.forEach { - when (testDb) { - TestDB.H2_ORACLE, TestDB.H2_SQLSERVER -> { - assertEquals(ReferenceOption.RESTRICT, it.updateRule) - assertEquals(ReferenceOption.RESTRICT, it.deleteRule) - } - else -> { - assertEquals(currentDialectTest.defaultReferenceOption, it.updateRule) - assertEquals(currentDialectTest.defaultReferenceOption, it.deleteRule) - } - } + assertEquals(currentDialectTest.defaultReferenceOption, it.updateRule) + assertEquals(currentDialectTest.defaultReferenceOption, it.deleteRule) } } }