From c219e53634819568d42d0f513dc984c5e8bef5de Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Fri, 12 Nov 2021 17:08:20 +0300 Subject: [PATCH] [Native][tests] Minor. Prefer using JUnit assertions over Kotlin checks --- .../tests/org/jetbrains/kotlin/konan/blackboxtest/TestCase.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/TestCase.kt b/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/TestCase.kt index 351c5f1aa6e..60dd9c7ef95 100644 --- a/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/TestCase.kt +++ b/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/TestCase.kt @@ -235,8 +235,8 @@ internal interface TestCaseGroup { companion object { val ALL_DISABLED = object : TestCaseGroup { override fun isEnabled(testDataFileName: String) = false - override fun getByName(testDataFileName: String) = error("This function should not be called") - override fun getRegularOnlyByCompilerArgs(freeCompilerArgs: TestCompilerArgs) = error("This function should not be called") + override fun getByName(testDataFileName: String) = fail { "This function should not be called" } + override fun getRegularOnlyByCompilerArgs(freeCompilerArgs: TestCompilerArgs) = fail { "This function should not be called" } } } }