Skip to content

Commit b686e04

Browse files
committed
Try once more to restore binary compatibility in runTest
Fixes #3673
1 parent 2e92d58 commit b686e04

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

kotlinx-coroutines-test/api/kotlinx-coroutines-test.api

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public final class kotlinx/coroutines/test/TestBuildersKt {
2222
public static final fun runTest (Lkotlinx/coroutines/test/TestScope;JLkotlin/jvm/functions/Function2;)V
2323
public static synthetic fun runTest$default (Lkotlin/coroutines/CoroutineContext;JLkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
2424
public static synthetic fun runTest$default (Lkotlinx/coroutines/test/TestCoroutineScope;JLkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
25-
public static final synthetic fun runTest$default (Lkotlinx/coroutines/test/TestScope;Ljava/lang/Long;Lkotlin/jvm/functions/Function2;Ljava/lang/Integer;Ljava/lang/Object;)V
25+
public static final synthetic fun runTest$default (Lkotlinx/coroutines/test/TestScope;JLkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
2626
public static final fun runTest-8Mi8wO0 (Lkotlin/coroutines/CoroutineContext;JLkotlin/jvm/functions/Function2;)V
2727
public static final fun runTest-8Mi8wO0 (Lkotlinx/coroutines/test/TestScope;JLkotlin/jvm/functions/Function2;)V
2828
public static synthetic fun runTest-8Mi8wO0$default (Lkotlin/coroutines/CoroutineContext;JLkotlin/jvm/functions/Function2;ILjava/lang/Object;)V

kotlinx-coroutines-test/common/src/TestBuilders.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ internal expect fun dumpCoroutines()
578578
@JvmName("runTest\$default")
579579
@Suppress("DEPRECATION", "UNUSED_PARAMETER")
580580
public fun TestScope.runTestLegacy(
581-
dispatchTimeoutMs: Long?,
581+
dispatchTimeoutMs: Long,
582582
testBody: suspend TestScope.() -> Unit,
583-
unused1: Int?,
583+
unused1: Int,
584584
unused2: Any?,
585-
): TestResult = runTest(dispatchTimeoutMs ?: 60_000, testBody)
585+
): TestResult = runTest(dispatchTimeoutMs, testBody)

0 commit comments

Comments
 (0)