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() {
87
87
val value = withTimeoutOrNull(1 ) {
88
88
channel.receive()
89
89
}
90
-
91
90
assertNull(value)
92
91
}
93
92
@@ -99,11 +98,11 @@ class WithTimeoutOrNullTest : TestBase() {
99
98
}
100
99
101
100
@Test
102
- fun testInnerTimeoutTest () = runTest(
101
+ fun testInnerTimeout () = runTest(
103
102
expected = { it is CancellationException }
104
103
) {
105
- withTimeoutOrNull(200 ) {
106
- withTimeout(100 ) {
104
+ withTimeoutOrNull(1000 ) {
105
+ withTimeout(10 ) {
107
106
while (true ) {
108
107
yield ()
109
108
}
@@ -127,7 +126,7 @@ class WithTimeoutOrNullTest : TestBase() {
127
126
}
128
127
129
128
@Test
130
- fun testOuterTimeoutTest () = runTest {
129
+ fun testOuterTimeout () = runTest {
131
130
var counter = 0
132
131
val result = withTimeoutOrNull(250 ) {
133
132
while (true ) {
You can’t perform that action at this time.
0 commit comments