Skip to content

Commit a8ae077

Browse files
authored
Update reactive streams JAR version (#2744)
Fixes #2740
1 parent 582086c commit a8ae077

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ lincheck_version=2.12
1717
dokka_version=0.9.16-rdev-2-mpp-hacks
1818
byte_buddy_version=1.10.9
1919
reactor_version=3.4.1
20-
reactive_streams_version=1.0.2
20+
reactive_streams_version=1.0.3
2121
rxjava2_version=2.2.8
2222
rxjava3_version=3.0.2
2323
javafx_version=11.0.2

reactive/kotlinx-coroutines-jdk9/build.gradle.kts

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
*/
44

55
dependencies {
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

109
tasks {

reactive/kotlinx-coroutines-reactive/test/IterableFlowTckTest.kt

+3-9
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,12 @@
77
package kotlinx.coroutines.reactive
88

99
import kotlinx.coroutines.flow.*
10-
import org.junit.*
1110
import org.junit.Ignore
1211
import org.junit.Test
1312
import org.reactivestreams.*
1413
import org.reactivestreams.tck.*
15-
16-
import org.reactivestreams.Subscription
17-
import org.reactivestreams.Subscriber
18-
import java.util.ArrayList
1914
import java.util.concurrent.*
20-
import java.util.concurrent.CountDownLatch
21-
import java.util.concurrent.ForkJoinPool.commonPool
15+
import java.util.concurrent.ForkJoinPool.*
2216
import kotlin.test.*
2317

2418
class 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

0 commit comments

Comments
 (0)