{"action":"created","comment":{"url":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls/comments/65797695","id":65797695,"diff_hunk":"@@ -0,0 +1,42 @@\n+package rx.android.schedulers;\n+\n+\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.robolectric.RobolectricTestRunner;\n+import org.robolectric.annotation.Config;\n+\n+import rx.Scheduler;\n+import rx.android.plugins.RxAndroidPlugins;\n+import rx.android.plugins.RxAndroidSchedulersHook;\n+import rx.schedulers.TestScheduler;\n+\n+import static org.junit.Assert.assertTrue;\n+\n+@RunWith(RobolectricTestRunner.class)\n+@Config(manifest = Config.NONE)\n+public final class ResetSchedulersTest {\n+\n+    @Test\n+    public void reset() {","path":"rxandroid/src/test/java/rx/android/schedulers/ResetSchedulersTest.java","position":21,"original_position":21,"commit_id":"da5675c31e8eef8a02a28fe1584a30db64a9ded9","original_commit_id":"da5675c31e8eef8a02a28fe1584a30db64a9ded9","user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"body":"Move to `AndroidSchedulersTest`? Why is this in its own file?","created_at":"2016-06-04T05:28:29Z","updated_at":"2016-06-04T05:28:29Z","html_url":"https://github.com/ReactiveX/RxAndroid/pull/294#discussion_r65797695","pull_request_url":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls/294","_links":{"self":{"href":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls/comments/65797695"},"html":{"href":"https://github.com/ReactiveX/RxAndroid/pull/294#discussion_r65797695"},"pull_request":{"href":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls/294"}}},"pull_request":{"url":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls/294","id":72487395,"html_url":"https://github.com/ReactiveX/RxAndroid/pull/294","diff_url":"https://github.com/ReactiveX/RxAndroid/pull/294.diff","patch_url":"https://github.com/ReactiveX/RxAndroid/pull/294.patch","issue_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/294","number":294,"state":"open","locked":false,"title":"Add AndroidSchedulers.reset() for better testing support","user":{"login":"hzsweers","id":1361086,"avatar_url":"https://avatars.githubusercontent.com/u/1361086?v=3","gravatar_id":"","url":"https://api.github.com/users/hzsweers","html_url":"https://github.com/hzsweers","followers_url":"https://api.github.com/users/hzsweers/followers","following_url":"https://api.github.com/users/hzsweers/following{/other_user}","gists_url":"https://api.github.com/users/hzsweers/gists{/gist_id}","starred_url":"https://api.github.com/users/hzsweers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzsweers/subscriptions","organizations_url":"https://api.github.com/users/hzsweers/orgs","repos_url":"https://api.github.com/users/hzsweers/repos","events_url":"https://api.github.com/users/hzsweers/events{/privacy}","received_events_url":"https://api.github.com/users/hzsweers/received_events","type":"User","site_admin":false},"body":"Corresponds to https://github.com/ReactiveX/RxJava/pull/3986\r\n\r\nThis adds a `reset()` method to `AndroidSchedulers`, with the main benefit being improved testing support. This does slightly tweak the internal API of `AndroidSchedulers` to use a `getInstance()` approach to allow lazy init. This way we don't have to replace the singleton instance during `reset()` and allow it to lazily re-evaluate upon next usage. Otherwise, if you change your scheduler hook, you'd always have to make sure you set it before you call `Schedulers.reset()`.","created_at":"2016-06-03T10:40:51Z","updated_at":"2016-06-04T05:28:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46759ba869364892853000ce412bb8718edf5c06","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls/294/commits","review_comments_url":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls/294/comments","review_comment_url":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/294/comments","statuses_url":"https://api.github.com/repos/ReactiveX/RxAndroid/statuses/da5675c31e8eef8a02a28fe1584a30db64a9ded9","head":{"label":"hzsweers:z/reset","ref":"z/reset","sha":"da5675c31e8eef8a02a28fe1584a30db64a9ded9","user":{"login":"hzsweers","id":1361086,"avatar_url":"https://avatars.githubusercontent.com/u/1361086?v=3","gravatar_id":"","url":"https://api.github.com/users/hzsweers","html_url":"https://github.com/hzsweers","followers_url":"https://api.github.com/users/hzsweers/followers","following_url":"https://api.github.com/users/hzsweers/following{/other_user}","gists_url":"https://api.github.com/users/hzsweers/gists{/gist_id}","starred_url":"https://api.github.com/users/hzsweers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzsweers/subscriptions","organizations_url":"https://api.github.com/users/hzsweers/orgs","repos_url":"https://api.github.com/users/hzsweers/repos","events_url":"https://api.github.com/users/hzsweers/events{/privacy}","received_events_url":"https://api.github.com/users/hzsweers/received_events","type":"User","site_admin":false},"repo":{"id":60322877,"name":"RxAndroid","full_name":"hzsweers/RxAndroid","owner":{"login":"hzsweers","id":1361086,"avatar_url":"https://avatars.githubusercontent.com/u/1361086?v=3","gravatar_id":"","url":"https://api.github.com/users/hzsweers","html_url":"https://github.com/hzsweers","followers_url":"https://api.github.com/users/hzsweers/followers","following_url":"https://api.github.com/users/hzsweers/following{/other_user}","gists_url":"https://api.github.com/users/hzsweers/gists{/gist_id}","starred_url":"https://api.github.com/users/hzsweers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzsweers/subscriptions","organizations_url":"https://api.github.com/users/hzsweers/orgs","repos_url":"https://api.github.com/users/hzsweers/repos","events_url":"https://api.github.com/users/hzsweers/events{/privacy}","received_events_url":"https://api.github.com/users/hzsweers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hzsweers/RxAndroid","description":"RxJava bindings for Android","fork":true,"url":"https://api.github.com/repos/hzsweers/RxAndroid","forks_url":"https://api.github.com/repos/hzsweers/RxAndroid/forks","keys_url":"https://api.github.com/repos/hzsweers/RxAndroid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hzsweers/RxAndroid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hzsweers/RxAndroid/teams","hooks_url":"https://api.github.com/repos/hzsweers/RxAndroid/hooks","issue_events_url":"https://api.github.com/repos/hzsweers/RxAndroid/issues/events{/number}","events_url":"https://api.github.com/repos/hzsweers/RxAndroid/events","assignees_url":"https://api.github.com/repos/hzsweers/RxAndroid/assignees{/user}","branches_url":"https://api.github.com/repos/hzsweers/RxAndroid/branches{/branch}","tags_url":"https://api.github.com/repos/hzsweers/RxAndroid/tags","blobs_url":"https://api.github.com/repos/hzsweers/RxAndroid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hzsweers/RxAndroid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hzsweers/RxAndroid/git/refs{/sha}","trees_url":"https://api.github.com/repos/hzsweers/RxAndroid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hzsweers/RxAndroid/statuses/{sha}","languages_url":"https://api.github.com/repos/hzsweers/RxAndroid/languages","stargazers_url":"https://api.github.com/repos/hzsweers/RxAndroid/stargazers","contributors_url":"https://api.github.com/repos/hzsweers/RxAndroid/contributors","subscribers_url":"https://api.github.com/repos/hzsweers/RxAndroid/subscribers","subscription_url":"https://api.github.com/repos/hzsweers/RxAndroid/subscription","commits_url":"https://api.github.com/repos/hzsweers/RxAndroid/commits{/sha}","git_commits_url":"https://api.github.com/repos/hzsweers/RxAndroid/git/commits{/sha}","comments_url":"https://api.github.com/repos/hzsweers/RxAndroid/comments{/number}","issue_comment_url":"https://api.github.com/repos/hzsweers/RxAndroid/issues/comments{/number}","contents_url":"https://api.github.com/repos/hzsweers/RxAndroid/contents/{+path}","compare_url":"https://api.github.com/repos/hzsweers/RxAndroid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hzsweers/RxAndroid/merges","archive_url":"https://api.github.com/repos/hzsweers/RxAndroid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hzsweers/RxAndroid/downloads","issues_url":"https://api.github.com/repos/hzsweers/RxAndroid/issues{/number}","pulls_url":"https://api.github.com/repos/hzsweers/RxAndroid/pulls{/number}","milestones_url":"https://api.github.com/repos/hzsweers/RxAndroid/milestones{/number}","notifications_url":"https://api.github.com/repos/hzsweers/RxAndroid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hzsweers/RxAndroid/labels{/name}","releases_url":"https://api.github.com/repos/hzsweers/RxAndroid/releases{/id}","deployments_url":"https://api.github.com/repos/hzsweers/RxAndroid/deployments","created_at":"2016-06-03T06:11:45Z","updated_at":"2016-06-03T06:11:46Z","pushed_at":"2016-06-03T10:49:25Z","git_url":"git://github.com/hzsweers/RxAndroid.git","ssh_url":"git@github.com:hzsweers/RxAndroid.git","clone_url":"https://github.com/hzsweers/RxAndroid.git","svn_url":"https://github.com/hzsweers/RxAndroid","homepage":"","size":690,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ReactiveX:master","ref":"master","sha":"fc72d3ae29022a5f2064a7b149d81058a378294f","user":{"login":"ReactiveX","id":6407041,"avatar_url":"https://avatars.githubusercontent.com/u/6407041?v=3","gravatar_id":"","url":"https://api.github.com/users/ReactiveX","html_url":"https://github.com/ReactiveX","followers_url":"https://api.github.com/users/ReactiveX/followers","following_url":"https://api.github.com/users/ReactiveX/following{/other_user}","gists_url":"https://api.github.com/users/ReactiveX/gists{/gist_id}","starred_url":"https://api.github.com/users/ReactiveX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReactiveX/subscriptions","organizations_url":"https://api.github.com/users/ReactiveX/orgs","repos_url":"https://api.github.com/users/ReactiveX/repos","events_url":"https://api.github.com/users/ReactiveX/events{/privacy}","received_events_url":"https://api.github.com/users/ReactiveX/received_events","type":"Organization","site_admin":false},"repo":{"id":23095954,"name":"RxAndroid","full_name":"ReactiveX/RxAndroid","owner":{"login":"ReactiveX","id":6407041,"avatar_url":"https://avatars.githubusercontent.com/u/6407041?v=3","gravatar_id":"","url":"https://api.github.com/users/ReactiveX","html_url":"https://github.com/ReactiveX","followers_url":"https://api.github.com/users/ReactiveX/followers","following_url":"https://api.github.com/users/ReactiveX/following{/other_user}","gists_url":"https://api.github.com/users/ReactiveX/gists{/gist_id}","starred_url":"https://api.github.com/users/ReactiveX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReactiveX/subscriptions","organizations_url":"https://api.github.com/users/ReactiveX/orgs","repos_url":"https://api.github.com/users/ReactiveX/repos","events_url":"https://api.github.com/users/ReactiveX/events{/privacy}","received_events_url":"https://api.github.com/users/ReactiveX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ReactiveX/RxAndroid","description":"RxJava bindings for Android","fork":false,"url":"https://api.github.com/repos/ReactiveX/RxAndroid","forks_url":"https://api.github.com/repos/ReactiveX/RxAndroid/forks","keys_url":"https://api.github.com/repos/ReactiveX/RxAndroid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ReactiveX/RxAndroid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ReactiveX/RxAndroid/teams","hooks_url":"https://api.github.com/repos/ReactiveX/RxAndroid/hooks","issue_events_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/events{/number}","events_url":"https://api.github.com/repos/ReactiveX/RxAndroid/events","assignees_url":"https://api.github.com/repos/ReactiveX/RxAndroid/assignees{/user}","branches_url":"https://api.github.com/repos/ReactiveX/RxAndroid/branches{/branch}","tags_url":"https://api.github.com/repos/ReactiveX/RxAndroid/tags","blobs_url":"https://api.github.com/repos/ReactiveX/RxAndroid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ReactiveX/RxAndroid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ReactiveX/RxAndroid/git/refs{/sha}","trees_url":"https://api.github.com/repos/ReactiveX/RxAndroid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ReactiveX/RxAndroid/statuses/{sha}","languages_url":"https://api.github.com/repos/ReactiveX/RxAndroid/languages","stargazers_url":"https://api.github.com/repos/ReactiveX/RxAndroid/stargazers","contributors_url":"https://api.github.com/repos/ReactiveX/RxAndroid/contributors","subscribers_url":"https://api.github.com/repos/ReactiveX/RxAndroid/subscribers","subscription_url":"https://api.github.com/repos/ReactiveX/RxAndroid/subscription","commits_url":"https://api.github.com/repos/ReactiveX/RxAndroid/commits{/sha}","git_commits_url":"https://api.github.com/repos/ReactiveX/RxAndroid/git/commits{/sha}","comments_url":"https://api.github.com/repos/ReactiveX/RxAndroid/comments{/number}","issue_comment_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/comments{/number}","contents_url":"https://api.github.com/repos/ReactiveX/RxAndroid/contents/{+path}","compare_url":"https://api.github.com/repos/ReactiveX/RxAndroid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ReactiveX/RxAndroid/merges","archive_url":"https://api.github.com/repos/ReactiveX/RxAndroid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ReactiveX/RxAndroid/downloads","issues_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues{/number}","pulls_url":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls{/number}","milestones_url":"https://api.github.com/repos/ReactiveX/RxAndroid/milestones{/number}","notifications_url":"https://api.github.com/repos/ReactiveX/RxAndroid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ReactiveX/RxAndroid/labels{/name}","releases_url":"https://api.github.com/repos/ReactiveX/RxAndroid/releases{/id}","deployments_url":"https://api.github.com/repos/ReactiveX/RxAndroid/deployments","created_at":"2014-08-19T03:46:38Z","updated_at":"2016-06-04T03:49:18Z","pushed_at":"2016-06-03T10:49:27Z","git_url":"git://github.com/ReactiveX/RxAndroid.git","ssh_url":"git@github.com:ReactiveX/RxAndroid.git","clone_url":"https://github.com/ReactiveX/RxAndroid.git","svn_url":"https://github.com/ReactiveX/RxAndroid","homepage":"","size":1281,"stargazers_count":7189,"watchers_count":7189,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1223,"mirror_url":null,"open_issues_count":3,"forks":1223,"open_issues":3,"watchers":7189,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls/294"},"html":{"href":"https://github.com/ReactiveX/RxAndroid/pull/294"},"issue":{"href":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/294"},"comments":{"href":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/294/comments"},"review_comments":{"href":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls/294/comments"},"review_comment":{"href":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ReactiveX/RxAndroid/pulls/294/commits"},"statuses":{"href":"https://api.github.com/repos/ReactiveX/RxAndroid/statuses/da5675c31e8eef8a02a28fe1584a30db64a9ded9"}}}}
{"actor":{"display_login":"JakeWharton"}}