File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/test/java/rx/schedulers Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ public class ResetSchedulersTest {
1313
1414 @ Test
1515 public void reset () {
16- RxJavaSchedulersHook originalHook = RxJavaPlugins .getInstance ().getSchedulersHook ();
1716 RxJavaPlugins .getInstance ().reset ();
1817
1918 final TestScheduler testScheduler = new TestScheduler ();
@@ -40,7 +39,7 @@ public Scheduler getNewThreadScheduler() {
4039 assertTrue (Schedulers .newThread ().equals (testScheduler ));
4140
4241 RxJavaPlugins .getInstance ().reset ();
43- RxJavaPlugins .getInstance ().registerSchedulersHook (originalHook );
42+ RxJavaPlugins .getInstance ().registerSchedulersHook (RxJavaSchedulersHook . getDefaultInstance () );
4443 Schedulers .reset ();
4544
4645 assertTrue (Schedulers .io () instanceof CachedThreadScheduler );
You can’t perform that action at this time.
0 commit comments