File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
main/java/rx/internal/operators
test/java/rx/internal/operators Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public void onError(Throwable e) {
54
54
55
55
@ Override
56
56
public void onNext (final Observable <T > o ) {
57
- inner .schedule (new Action0 () {
57
+ subscriber . add ( inner .schedule (new Action0 () {
58
58
59
59
@ Override
60
60
public void call () {
@@ -102,7 +102,7 @@ public void call() {
102
102
103
103
});
104
104
}
105
- });
105
+ })) ;
106
106
}
107
107
108
108
};
Original file line number Diff line number Diff line change @@ -609,6 +609,7 @@ public void testIssue2191_SchedulerUnsubscribe() throws Exception {
609
609
610
610
verify (spiedWorker , times (1 )).unsubscribe ();
611
611
verify (sourceUnsubscribed , times (1 )).call ();
612
+ verify (mockSubscription , times (1 )).unsubscribe ();
612
613
613
614
verifyNoMoreInteractions (sourceNext );
614
615
verifyNoMoreInteractions (sourceCompleted );
@@ -668,6 +669,7 @@ public void testIssue2191_SchedulerUnsubscribeOnError() throws Exception {
668
669
669
670
verify (spiedWorker , times (1 )).unsubscribe ();
670
671
verify (sourceUnsubscribed , times (1 )).call ();
672
+ verify (mockSubscription , times (1 )).unsubscribe ();
671
673
672
674
verifyNoMoreInteractions (sourceNext );
673
675
verifyNoMoreInteractions (sourceCompleted );
You can’t perform that action at this time.
0 commit comments