File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
common/kotlinx-coroutines-core-common/test Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ class WithTimeoutOrNullTest : TestBase() {
8787 val value = withTimeoutOrNull(1 ) {
8888 channel.receive()
8989 }
90-
9190 assertNull(value)
9291 }
9392
@@ -99,11 +98,11 @@ class WithTimeoutOrNullTest : TestBase() {
9998 }
10099
101100 @Test
102- fun testInnerTimeoutTest () = runTest(
101+ fun testInnerTimeout () = runTest(
103102 expected = { it is CancellationException }
104103 ) {
105- withTimeoutOrNull(200 ) {
106- withTimeout(100 ) {
104+ withTimeoutOrNull(1000 ) {
105+ withTimeout(10 ) {
107106 while (true ) {
108107 yield ()
109108 }
@@ -127,7 +126,7 @@ class WithTimeoutOrNullTest : TestBase() {
127126 }
128127
129128 @Test
130- fun testOuterTimeoutTest () = runTest {
129+ fun testOuterTimeout () = runTest {
131130 var counter = 0
132131 val result = withTimeoutOrNull(250 ) {
133132 while (true ) {
You can’t perform that action at this time.
0 commit comments