File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ public void run() {
173
173
actual .call ();
174
174
} catch (Throwable t ) {
175
175
RxJavaPlugins .getInstance ().getErrorHandler ().handleError (t );
176
+ Thread thread = Thread .currentThread ();
177
+ thread .getUncaughtExceptionHandler ().uncaughtException (thread , t );
176
178
} finally {
177
179
unsubscribe ();
178
180
}
Original file line number Diff line number Diff line change 15
15
*/
16
16
package rx .schedulers ;
17
17
18
+ import org .junit .Test ;
18
19
import rx .Scheduler ;
19
20
import rx .internal .util .RxThreadFactory ;
20
21
@@ -29,5 +30,14 @@ public class ExecutorSchedulerTest extends AbstractSchedulerConcurrencyTests {
29
30
protected Scheduler getScheduler () {
30
31
return Schedulers .from (executor );
31
32
}
32
-
33
+
34
+ @ Test
35
+ public final void testUnhandledErrorIsDeliveredToThreadHandler () throws InterruptedException {
36
+ SchedulerTests .testUnhandledErrorIsDeliveredToThreadHandler (getScheduler ());
37
+ }
38
+
39
+ @ Test
40
+ public final void testHandledErrorIsNotDeliveredToThreadHandler () throws InterruptedException {
41
+ SchedulerTests .testHandledErrorIsNotDeliveredToThreadHandler (getScheduler ());
42
+ }
33
43
}
You can’t perform that action at this time.
0 commit comments