File tree 3 files changed +5
-12
lines changed
kotlinx-coroutines-reactive/test
3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ lincheck_version=2.12
17
17
dokka_version =0.9.16-rdev-2-mpp-hacks
18
18
byte_buddy_version =1.10.9
19
19
reactor_version =3.4.1
20
- reactive_streams_version =1.0.2
20
+ reactive_streams_version =1.0.3
21
21
rxjava2_version =2.2.8
22
22
rxjava3_version =3.0.2
23
23
javafx_version =11.0.2
Original file line number Diff line number Diff line change 3
3
*/
4
4
5
5
dependencies {
6
- compile(project(" :kotlinx-coroutines-reactive" ))
7
- compile(" org.reactivestreams:reactive-streams-flow-adapters:${version(" reactive_streams" )} " )
6
+ implementation(project(" :kotlinx-coroutines-reactive" ))
8
7
}
9
8
10
9
tasks {
Original file line number Diff line number Diff line change 7
7
package kotlinx.coroutines.reactive
8
8
9
9
import kotlinx.coroutines.flow.*
10
- import org.junit.*
11
10
import org.junit.Ignore
12
11
import org.junit.Test
13
12
import org.reactivestreams.*
14
13
import org.reactivestreams.tck.*
15
-
16
- import org.reactivestreams.Subscription
17
- import org.reactivestreams.Subscriber
18
- import java.util.ArrayList
19
14
import java.util.concurrent.*
20
- import java.util.concurrent.CountDownLatch
21
- import java.util.concurrent.ForkJoinPool.commonPool
15
+ import java.util.concurrent.ForkJoinPool.*
22
16
import kotlin.test.*
23
17
24
18
class IterableFlowTckTest : PublisherVerification <Long >(TestEnvironment ()) {
@@ -97,7 +91,7 @@ class IterableFlowTckTest : PublisherVerification<Long>(TestEnvironment()) {
97
91
98
92
override fun onSubscribe (s : Subscription ) {
99
93
this .s = s
100
- for (i in 0 until n) {
94
+ for (i in 0 .. n) {
101
95
commonPool().execute { s.request(1 ) }
102
96
}
103
97
}
@@ -115,7 +109,7 @@ class IterableFlowTckTest : PublisherVerification<Long>(TestEnvironment()) {
115
109
}
116
110
})
117
111
118
- latch.await(50 , TimeUnit . SECONDS )
112
+ latch.await()
119
113
assertEquals(array.toList(), collected)
120
114
}
121
115
You can’t perform that action at this time.
0 commit comments