From 1d32a1d93d249769fd7c7a16272d7f831d8d2b48 Mon Sep 17 00:00:00 2001 From: Dmitry Khalanskiy Date: Mon, 6 Mar 2023 11:31:09 +0100 Subject: [PATCH] Fix a broken test The timeout was too low, the test body would never get a chance to run. --- kotlinx-coroutines-test/common/test/RunTestTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlinx-coroutines-test/common/test/RunTestTest.kt b/kotlinx-coroutines-test/common/test/RunTestTest.kt index 183eb8cb3a..da2bdcfc76 100644 --- a/kotlinx-coroutines-test/common/test/RunTestTest.kt +++ b/kotlinx-coroutines-test/common/test/RunTestTest.kt @@ -215,7 +215,7 @@ class RunTestTest { } } }) { - runTest(timeout = 1.milliseconds) { + runTest(timeout = 100.milliseconds) { coroutineContext[CoroutineExceptionHandler]!!.handleException(coroutineContext, TestException("A")) withContext(Dispatchers.Default) { delay(10000)