diff --git a/kotlinx-coroutines-test/common/test/RunTestTest.kt b/kotlinx-coroutines-test/common/test/RunTestTest.kt index dda89e3a31..0315543d54 100644 --- a/kotlinx-coroutines-test/common/test/RunTestTest.kt +++ b/kotlinx-coroutines-test/common/test/RunTestTest.kt @@ -69,20 +69,6 @@ class RunTestTest { deferred.await() } - /** Tests that a dispatch timeout of `0` will fail the test if there are some dispatches outside the scheduler. */ - @Test - fun testRunTestWithZeroTimeoutWithUncontrolledDispatches() = testResultMap({ fn -> - assertFailsWith { fn() } - }) { - runTest(dispatchTimeoutMs = 0) { - withContext(Dispatchers.Default) { - delay(10) - 3 - } - fail("shouldn't be reached") - } - } - /** Tests that too low of a dispatch timeout causes crashes. */ @Test fun testRunTestWithSmallTimeout() = testResultMap({ fn -> diff --git a/kotlinx-coroutines-test/jvm/test/migration/RunTestLegacyScopeTest.kt b/kotlinx-coroutines-test/jvm/test/migration/RunTestLegacyScopeTest.kt index 7f1dd00963..ed5b1577f5 100644 --- a/kotlinx-coroutines-test/jvm/test/migration/RunTestLegacyScopeTest.kt +++ b/kotlinx-coroutines-test/jvm/test/migration/RunTestLegacyScopeTest.kt @@ -66,19 +66,6 @@ class RunTestLegacyScopeTest { deferred.await() } - @Test - fun testRunTestWithZeroTimeoutWithUncontrolledDispatches() = testResultMap({ fn -> - assertFailsWith { fn() } - }) { - runTestWithLegacyScope(dispatchTimeoutMs = 0) { - withContext(Dispatchers.Default) { - delay(10) - 3 - } - fail("shouldn't be reached") - } - } - @Test fun testRunTestWithSmallTimeout() = testResultMap({ fn -> assertFailsWith { fn() }