diff --git a/library/src/commonTest/kotlin/com/lagradost/cloudstream3/utils/Ignore.kt b/library/src/commonTest/kotlin/com/lagradost/cloudstream3/utils/Ignore.kt new file mode 100644 index 00000000000..f815258a336 --- /dev/null +++ b/library/src/commonTest/kotlin/com/lagradost/cloudstream3/utils/Ignore.kt @@ -0,0 +1,6 @@ +package com.lagradost.cloudstream3.utils + +@OptIn(ExperimentalMultiplatform::class) // OptionalExpectation is an experimental annotation for now +@OptionalExpectation +@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) +expect annotation class IgnoreOnWeb() diff --git a/library/src/commonTest/kotlin/com/lagradost/cloudstream3/utils/JsInterpreterTest.kt b/library/src/commonTest/kotlin/com/lagradost/cloudstream3/utils/JsInterpreterTest.kt index ded236f4e41..588b8d26889 100644 --- a/library/src/commonTest/kotlin/com/lagradost/cloudstream3/utils/JsInterpreterTest.kt +++ b/library/src/commonTest/kotlin/com/lagradost/cloudstream3/utils/JsInterpreterTest.kt @@ -2133,6 +2133,7 @@ class JsInterpreterTest { } @Test + @IgnoreOnWeb fun suspendEvalJsWithTimeoutCancelsInfiniteLoop() = runTest { /** * activeScope() provides a real CoroutineScope with a real Job, so withTimeout @@ -2326,6 +2327,7 @@ class JsInterpreterTest { } @Test + @IgnoreOnWeb fun jsContextEvalCancelledWhenEnclosingCoroutineCancelledViaWithTimeout() = runTest { val done = Channel() var elapsed = Duration.ZERO @@ -2360,6 +2362,7 @@ class JsInterpreterTest { } @Test + @IgnoreOnWeb fun jsContextJsTryCatchCannotSwallowEnclosingCancellation() = runTest { val done = Channel() var elapsed = Duration.ZERO