diff --git a/arrow-libs/core/arrow-core/src/jvmTest/kotlin/arrow/core/raise/TraceJvmSpec.kt b/arrow-libs/core/arrow-core/src/jvmTest/kotlin/arrow/core/raise/TraceJvmSpec.kt index caaf88af7ff..94d3d50c740 100644 --- a/arrow-libs/core/arrow-core/src/jvmTest/kotlin/arrow/core/raise/TraceJvmSpec.kt +++ b/arrow-libs/core/arrow-core/src/jvmTest/kotlin/arrow/core/raise/TraceJvmSpec.kt @@ -1,11 +1,12 @@ package arrow.core.raise -import io.kotest.core.spec.style.StringSpec import io.kotest.matchers.shouldBe - +import kotlin.test.Test +import kotlinx.coroutines.test.runTest + @OptIn(ExperimentalTraceApi::class) -class TraceJvmSpec : StringSpec({ - "Can trace a typed error" { +class TraceJvmSpec { + @Test fun canTraceATypedError() = runTest { either { traced({ raise(RuntimeException("")) }) { traced, raised -> // Remove first 2 lines: @@ -21,4 +22,4 @@ class TraceJvmSpec : StringSpec({ } } } -}) +}