File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed
kotlinx-coroutines-reactive/test Expand file tree Collapse file tree 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
1717dokka_version =0.9.16-rdev-2-mpp-hacks
1818byte_buddy_version =1.10.9
1919reactor_version =3.4.1
20- reactive_streams_version =1.0.2
20+ reactive_streams_version =1.0.3
2121rxjava2_version =2.2.8
2222rxjava3_version =3.0.2
2323javafx_version =11.0.2
Original file line number Diff line number Diff line change 33 */
44
55dependencies {
6- compile(project(" :kotlinx-coroutines-reactive" ))
7- compile(" org.reactivestreams:reactive-streams-flow-adapters:${version(" reactive_streams" )} " )
6+ implementation(project(" :kotlinx-coroutines-reactive" ))
87}
98
109tasks {
Original file line number Diff line number Diff line change 77package kotlinx.coroutines.reactive
88
99import kotlinx.coroutines.flow.*
10- import org.junit.*
1110import org.junit.Ignore
1211import org.junit.Test
1312import org.reactivestreams.*
1413import org.reactivestreams.tck.*
15-
16- import org.reactivestreams.Subscription
17- import org.reactivestreams.Subscriber
18- import java.util.ArrayList
1914import java.util.concurrent.*
20- import java.util.concurrent.CountDownLatch
21- import java.util.concurrent.ForkJoinPool.commonPool
15+ import java.util.concurrent.ForkJoinPool.*
2216import kotlin.test.*
2317
2418class IterableFlowTckTest : PublisherVerification <Long >(TestEnvironment ()) {
@@ -97,7 +91,7 @@ class IterableFlowTckTest : PublisherVerification<Long>(TestEnvironment()) {
9791
9892 override fun onSubscribe (s : Subscription ) {
9993 this .s = s
100- for (i in 0 until n) {
94+ for (i in 0 .. n) {
10195 commonPool().execute { s.request(1 ) }
10296 }
10397 }
@@ -115,7 +109,7 @@ class IterableFlowTckTest : PublisherVerification<Long>(TestEnvironment()) {
115109 }
116110 })
117111
118- latch.await(50 , TimeUnit . SECONDS )
112+ latch.await()
119113 assertEquals(array.toList(), collected)
120114 }
121115
You can’t perform that action at this time.
0 commit comments