Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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()
Original file line number Diff line number Diff line change
Expand Up @@ -2133,6 +2133,7 @@ class JsInterpreterTest {
}

@Test
@IgnoreOnWeb
fun suspendEvalJsWithTimeoutCancelsInfiniteLoop() = runTest {
/**
* activeScope() provides a real CoroutineScope with a real Job, so withTimeout
Expand Down Expand Up @@ -2326,6 +2327,7 @@ class JsInterpreterTest {
}

@Test
@IgnoreOnWeb
fun jsContextEvalCancelledWhenEnclosingCoroutineCancelledViaWithTimeout() = runTest {
val done = Channel<Unit>()
var elapsed = Duration.ZERO
Expand Down Expand Up @@ -2360,6 +2362,7 @@ class JsInterpreterTest {
}

@Test
@IgnoreOnWeb
fun jsContextJsTryCatchCannotSwallowEnclosingCancellation() = runTest {
val done = Channel<Unit>()
var elapsed = Duration.ZERO
Expand Down