Skip to content

Commit 04a5e35

Browse files
committed
Switch to Reactor 2020.0.7 snapshots
See gh-1005 Signed-off-by: Rossen Stoyanchev <[email protected]>
1 parent 67f6077 commit 04a5e35

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ subprojects {
3232
apply plugin: 'io.spring.dependency-management'
3333
apply plugin: 'com.github.sherter.google-java-format'
3434

35-
ext['reactor-bom.version'] = '2020.0.4'
35+
ext['reactor-bom.version'] = '2020.0.7-SNAPSHOT'
3636
ext['logback.version'] = '1.2.3'
3737
ext['netty-bom.version'] = '4.1.59.Final'
3838
ext['netty-boringssl.version'] = '2.0.36.Final'

rsocket-core/src/test/java/io/rsocket/core/ReconnectMonoTests.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ public void shouldExpireValueOnDispose() {
857857
Assertions.assertThat(received).hasSize(1);
858858
Assertions.assertThat(reconnectMono.isDisposed()).isTrue();
859859

860-
StepVerifier.create(reconnectMono.subscribeOn(Schedulers.elastic()))
860+
StepVerifier.create(reconnectMono.subscribeOn(Schedulers.boundedElastic()))
861861
.expectSubscription()
862862
.expectError(CancellationException.class)
863863
.verify(Duration.ofSeconds(timeout));
@@ -923,7 +923,7 @@ public void shouldExpireValueExactlyOnceOnRacingBetweenInvalidates() {
923923
final ReconnectMono<String> reconnectMono =
924924
cold.mono().as(source -> new ReconnectMono<>(source, onExpire(), onValue()));
925925

926-
StepVerifier.create(reconnectMono.subscribeOn(Schedulers.elastic()))
926+
StepVerifier.create(reconnectMono.subscribeOn(Schedulers.boundedElastic()))
927927
.expectSubscription()
928928
.expectNext("value")
929929
.expectComplete()
@@ -937,7 +937,7 @@ public void shouldExpireValueExactlyOnceOnRacingBetweenInvalidates() {
937937
Assertions.assertThat(expired).hasSize(1).containsOnly("value");
938938
Assertions.assertThat(received).hasSize(1).containsOnly(Tuples.of("value", reconnectMono));
939939

940-
StepVerifier.create(reconnectMono.subscribeOn(Schedulers.elastic()))
940+
StepVerifier.create(reconnectMono.subscribeOn(Schedulers.boundedElastic()))
941941
.expectSubscription()
942942
.expectNext("value")
943943
.expectComplete()
@@ -965,7 +965,7 @@ public void shouldExpireValueExactlyOnceOnRacingBetweenInvalidateAndDispose() {
965965
final ReconnectMono<String> reconnectMono =
966966
cold.mono().as(source -> new ReconnectMono<>(source, onExpire(), onValue()));
967967

968-
StepVerifier.create(reconnectMono.subscribeOn(Schedulers.elastic()))
968+
StepVerifier.create(reconnectMono.subscribeOn(Schedulers.boundedElastic()))
969969
.expectSubscription()
970970
.expectNext("value")
971971
.expectComplete()
@@ -979,7 +979,7 @@ public void shouldExpireValueExactlyOnceOnRacingBetweenInvalidateAndDispose() {
979979
Assertions.assertThat(expired).hasSize(1).containsOnly("value");
980980
Assertions.assertThat(received).hasSize(1).containsOnly(Tuples.of("value", reconnectMono));
981981

982-
StepVerifier.create(reconnectMono.subscribeOn(Schedulers.elastic()))
982+
StepVerifier.create(reconnectMono.subscribeOn(Schedulers.boundedElastic()))
983983
.expectSubscription()
984984
.expectError(CancellationException.class)
985985
.verify(Duration.ofSeconds(timeout));
@@ -1011,7 +1011,7 @@ public void shouldTimeoutRetryWithVirtualTime() {
10111011
.maxBackoff(Duration.ofSeconds(maxBackoff)))
10121012
.timeout(Duration.ofSeconds(timeout))
10131013
.as(m -> new ReconnectMono<>(m, onExpire(), onValue()))
1014-
.subscribeOn(Schedulers.elastic()))
1014+
.subscribeOn(Schedulers.boundedElastic()))
10151015
.expectSubscription()
10161016
.thenAwait(Duration.ofSeconds(timeout))
10171017
.expectError(TimeoutException.class)
@@ -1027,7 +1027,7 @@ public void ensuresThatMainSubscriberAllowsOnlyTerminationWithValue() {
10271027
final ReconnectMono<String> reconnectMono =
10281028
new ReconnectMono<>(Mono.empty(), onExpire(), onValue());
10291029

1030-
StepVerifier.create(reconnectMono.subscribeOn(Schedulers.elastic()))
1030+
StepVerifier.create(reconnectMono.subscribeOn(Schedulers.boundedElastic()))
10311031
.expectSubscription()
10321032
.expectErrorSatisfies(
10331033
t ->

0 commit comments

Comments
 (0)