<lambda>null1package kotlinx.coroutines.test 2 3 import kotlinx.coroutines.* 4 import kotlinx.coroutines.testing.* 5 import kotlin.concurrent.* 6 import kotlin.coroutines.* 7 import kotlin.test.* 8 9 class RunTestStressTest { 10 /** Tests that notifications about asynchronous resumptions aren't lost. */ 11 @Test 12 fun testRunTestActivityNotificationsRace() { 13 val n = 1_000 * stressTestMultiplier 14 for (i in 0 until n) { 15 runTest { 16 suspendCancellableCoroutine<Unit> { cont -> 17 thread { 18 cont.resume(Unit) 19 } 20 } 21 } 22 } 23 } 24 } 25