File tree 2 files changed +7
-5
lines changed
tck/src/main/java/org/reactivestreams/tck
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ public void run(Publisher<T> pub) throws Throwable {
489
489
ManualSubscriber <T > sub = new ManualSubscriber <T >(env ) {
490
490
@ Override
491
491
public void onSubscribe (Subscription subs ) {
492
- this .subscription .complete (subs );
492
+ this .subscription .completeImmediatly (subs );
493
493
494
494
subs .request (1 );
495
495
subs .request (1 );
@@ -505,7 +505,8 @@ public void onNext(T element) {
505
505
506
506
env .subscribe (pub , sub );
507
507
508
- env .verifyNoAsyncErrors ();
508
+ long delay = env .defaultTimeoutMillis ();
509
+ env .verifyNoAsyncErrors (delay );
509
510
}
510
511
});
511
512
}
@@ -514,7 +515,7 @@ public void onNext(T element) {
514
515
@ Required @ Test
515
516
@ Additional (implement = "boundedDepthOfOnNextAndRequestRecursion" )
516
517
public void spec303_mustNotAllowUnboundedRecursion () throws Throwable {
517
- long oneMoreThanBoundedLimit = boundedDepthOfOnNextAndRequestRecursion () + 1 ;
518
+ final long oneMoreThanBoundedLimit = boundedDepthOfOnNextAndRequestRecursion () + 1 ;
518
519
519
520
activePublisherTest (oneMoreThanBoundedLimit , new PublisherTestRun <T >() {
520
521
@ Override
Original file line number Diff line number Diff line change @@ -605,7 +605,7 @@ public Promise(TestEnvironment env) {
605
605
}
606
606
607
607
private ArrayBlockingQueue <T > abq = new ArrayBlockingQueue <T >(1 );
608
- volatile private T _value = null ;
608
+ private volatile T _value = null ;
609
609
610
610
public T value () {
611
611
if (isCompleted ()) {
@@ -632,7 +632,8 @@ public void complete(T value) {
632
632
* Completes the promise right away, it is not possible to expectCompletion on a Promise completed this way
633
633
*/
634
634
public void completeImmediatly (T value ) {
635
- _value = value ;
635
+ complete (value ); // complete!
636
+ _value = value ; // immediatly!
636
637
}
637
638
638
639
public void expectCompletion (long timeoutMillis , String errorMsg ) throws InterruptedException {
You can’t perform that action at this time.
0 commit comments