From e7fb9bfd777c8e81909c119bdded50e34c96d7d2 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 26 Sep 2022 18:17:36 -0500 Subject: [PATCH] Support TestCoroutineInterceptor on K/N (#3219) --- .../commonMain/kotlin/io/kotest/engine/test/TestCaseExecutor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/test/TestCaseExecutor.kt b/kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/test/TestCaseExecutor.kt index 1e487b52955..f93a0a287a3 100644 --- a/kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/test/TestCaseExecutor.kt +++ b/kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/test/TestCaseExecutor.kt @@ -72,7 +72,7 @@ class TestCaseExecutor( TestInvocationInterceptor(configuration.registry, timeMark), InvocationTimeoutInterceptor, if (platform == Platform.JVM && testCase.config.testCoroutineDispatcher) TestDispatcherInterceptor() else null, - if (platform == Platform.JVM && testCase.config.coroutineTestScope) TestCoroutineInterceptor() else null, + if (platform != Platform.JS && testCase.config.coroutineTestScope) TestCoroutineInterceptor() else null, CoroutineDebugProbeInterceptor, )