File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ public void run() {
173173 actual .call ();
174174 } catch (Throwable t ) {
175175 RxJavaPlugins .getInstance ().getErrorHandler ().handleError (t );
176+ Thread thread = Thread .currentThread ();
177+ thread .getUncaughtExceptionHandler ().uncaughtException (thread , t );
176178 } finally {
177179 unsubscribe ();
178180 }
Original file line number Diff line number Diff line change 1515 */
1616package rx .schedulers ;
1717
18+ import org .junit .Test ;
1819import rx .Scheduler ;
1920import rx .internal .util .RxThreadFactory ;
2021
@@ -29,5 +30,14 @@ public class ExecutorSchedulerTest extends AbstractSchedulerConcurrencyTests {
2930 protected Scheduler getScheduler () {
3031 return Schedulers .from (executor );
3132 }
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+ }
3343}
You can’t perform that action at this time.
0 commit comments