Skip to content

Commit 8a01815

Browse files
committed
More stable testUnbiasedNegativeTimeout
1 parent 6e12fc4 commit 8a01815

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

common/kotlinx-coroutines-core-common/test/selects/SelectTimeoutTest.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import kotlinx.coroutines.experimental.*
88
import kotlin.test.*
99

1010
class SelectTimeoutTest : TestBase() {
11-
1211
@Test
1312
fun testBasic() = runTest {
1413
expect(1)
@@ -70,13 +69,13 @@ class SelectTimeoutTest : TestBase() {
7069
val iterations =10_000
7170
for (i in 0..iterations) {
7271
val result = selectUnbiased<Int> {
73-
onTimeout(-10) {
72+
onTimeout(-1000) {
7473
0
7574
}
7675
onTimeout(0) {
7776
1
7877
}
79-
onTimeout(10) {
78+
onTimeout(1000) {
8079
expectUnreached()
8180
2
8281
}

0 commit comments

Comments
 (0)