@@ -857,7 +857,7 @@ public void shouldExpireValueOnDispose() {
857
857
Assertions .assertThat (received ).hasSize (1 );
858
858
Assertions .assertThat (reconnectMono .isDisposed ()).isTrue ();
859
859
860
- StepVerifier .create (reconnectMono .subscribeOn (Schedulers .elastic ()))
860
+ StepVerifier .create (reconnectMono .subscribeOn (Schedulers .boundedElastic ()))
861
861
.expectSubscription ()
862
862
.expectError (CancellationException .class )
863
863
.verify (Duration .ofSeconds (timeout ));
@@ -923,7 +923,7 @@ public void shouldExpireValueExactlyOnceOnRacingBetweenInvalidates() {
923
923
final ReconnectMono <String > reconnectMono =
924
924
cold .mono ().as (source -> new ReconnectMono <>(source , onExpire (), onValue ()));
925
925
926
- StepVerifier .create (reconnectMono .subscribeOn (Schedulers .elastic ()))
926
+ StepVerifier .create (reconnectMono .subscribeOn (Schedulers .boundedElastic ()))
927
927
.expectSubscription ()
928
928
.expectNext ("value" )
929
929
.expectComplete ()
@@ -937,7 +937,7 @@ public void shouldExpireValueExactlyOnceOnRacingBetweenInvalidates() {
937
937
Assertions .assertThat (expired ).hasSize (1 ).containsOnly ("value" );
938
938
Assertions .assertThat (received ).hasSize (1 ).containsOnly (Tuples .of ("value" , reconnectMono ));
939
939
940
- StepVerifier .create (reconnectMono .subscribeOn (Schedulers .elastic ()))
940
+ StepVerifier .create (reconnectMono .subscribeOn (Schedulers .boundedElastic ()))
941
941
.expectSubscription ()
942
942
.expectNext ("value" )
943
943
.expectComplete ()
@@ -965,7 +965,7 @@ public void shouldExpireValueExactlyOnceOnRacingBetweenInvalidateAndDispose() {
965
965
final ReconnectMono <String > reconnectMono =
966
966
cold .mono ().as (source -> new ReconnectMono <>(source , onExpire (), onValue ()));
967
967
968
- StepVerifier .create (reconnectMono .subscribeOn (Schedulers .elastic ()))
968
+ StepVerifier .create (reconnectMono .subscribeOn (Schedulers .boundedElastic ()))
969
969
.expectSubscription ()
970
970
.expectNext ("value" )
971
971
.expectComplete ()
@@ -979,7 +979,7 @@ public void shouldExpireValueExactlyOnceOnRacingBetweenInvalidateAndDispose() {
979
979
Assertions .assertThat (expired ).hasSize (1 ).containsOnly ("value" );
980
980
Assertions .assertThat (received ).hasSize (1 ).containsOnly (Tuples .of ("value" , reconnectMono ));
981
981
982
- StepVerifier .create (reconnectMono .subscribeOn (Schedulers .elastic ()))
982
+ StepVerifier .create (reconnectMono .subscribeOn (Schedulers .boundedElastic ()))
983
983
.expectSubscription ()
984
984
.expectError (CancellationException .class )
985
985
.verify (Duration .ofSeconds (timeout ));
@@ -1011,7 +1011,7 @@ public void shouldTimeoutRetryWithVirtualTime() {
1011
1011
.maxBackoff (Duration .ofSeconds (maxBackoff )))
1012
1012
.timeout (Duration .ofSeconds (timeout ))
1013
1013
.as (m -> new ReconnectMono <>(m , onExpire (), onValue ()))
1014
- .subscribeOn (Schedulers .elastic ()))
1014
+ .subscribeOn (Schedulers .boundedElastic ()))
1015
1015
.expectSubscription ()
1016
1016
.thenAwait (Duration .ofSeconds (timeout ))
1017
1017
.expectError (TimeoutException .class )
@@ -1027,7 +1027,7 @@ public void ensuresThatMainSubscriberAllowsOnlyTerminationWithValue() {
1027
1027
final ReconnectMono <String > reconnectMono =
1028
1028
new ReconnectMono <>(Mono .empty (), onExpire (), onValue ());
1029
1029
1030
- StepVerifier .create (reconnectMono .subscribeOn (Schedulers .elastic ()))
1030
+ StepVerifier .create (reconnectMono .subscribeOn (Schedulers .boundedElastic ()))
1031
1031
.expectSubscription ()
1032
1032
.expectErrorSatisfies (
1033
1033
t ->
0 commit comments