File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
tck/src/main/java/org/reactivestreams/tck Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -457,8 +457,6 @@ public TestSetup apply(Long aLong) throws Throwable {
457
457
458
458
sub1 .request (1 );
459
459
sub2 .request (1 );
460
-
461
- sendError (ex );
462
460
} else {
463
461
sub1 .request (1 );
464
462
expectRequest ();
@@ -468,9 +466,9 @@ public TestSetup apply(Long aLong) throws Throwable {
468
466
469
467
// sub1 has received one element, and has one demand pending
470
468
// sub2 has not yet requested anything
471
-
472
- sendError (ex );
473
469
}
470
+ sendError (ex );
471
+
474
472
sub1 .expectError (ex );
475
473
sub2 .expectError (ex );
476
474
@@ -744,21 +742,16 @@ public TestSetup apply(Long subscribers) throws Throwable {
744
742
final T z = sendNextTFromUpstream ();
745
743
expectNextElement (sub1 , z );
746
744
expectNextElement (sub2 , z );
747
-
748
- if (totalRequests == 3 ) {
749
- expectRequest ();
750
- }
751
745
} else {
752
746
final T z = sendNextTFromUpstream ();
753
747
expectNextElement (sub1 , z );
754
748
sub2 .expectNone (); // since sub2 hasn't requested anything yet
755
749
756
750
sub2 .request (1 );
757
751
expectNextElement (sub2 , z );
758
-
759
- if (totalRequests == 3 ) {
760
- expectRequest ();
761
- }
752
+ }
753
+ if (totalRequests == 3 ) {
754
+ expectRequest ();
762
755
}
763
756
764
757
// to avoid error messages during test harness shutdown
You can’t perform that action at this time.
0 commit comments