Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

considers async option in HandlerScheduler.scheduleDirect #442

Merged
merged 4 commits into from
Feb 15, 2019

Conversation

satoshun
Copy link
Contributor

@satoshun satoshun commented Sep 5, 2018

close #441

@JakeWharton
Copy link
Contributor

This needs tests. Are you able to write them? If not, I can get to it sometime in the next week or two.

@satoshun
Copy link
Contributor Author

satoshun commented Sep 5, 2018

oh sorry, i forget writing test...

But, I think already HandlerSchedulerTest is considering the async option test by Parameterized test.

Are there other missing tests? Please tell me if any missing test.

@JakeWharton
Copy link
Contributor

Coverage is definitely missing. Either the test should have been failing before without this change or we aren't covering this codepath. Since the test is passing, we have missing coverage on this codepath.

@ZacSweers
Copy link
Contributor

The parameterized test just expects no regressions. There weren't any cases added that would have failed the the non-async implementation, as I'm not really sure how to coerce vsync behavior out of robolectric :X

@JakeWharton
Copy link
Contributor

You don't need to. We just need to assert the flag is set through all scheduler code paths. There's already a test which asserts that flag is not set on pre-16 which I added.

@ZacSweers
Copy link
Contributor

Ah didn't know that was added 😬

@JakeWharton
Copy link
Contributor

We just need to add ones which check each scheduler method and assert the flag is set to true on the messages. We should have been doing that anyway...

@satoshun
Copy link
Contributor Author

satoshun commented Sep 5, 2018

thx 😄

assert the flag is set to true on the messages.

i write a test!

@satoshun
Copy link
Contributor Author

satoshun commented Sep 6, 2018

@JakeWharton @hzsweers i added test for async option 😃

Copy link
Contributor

@ZacSweers ZacSweers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. Not terribly familiar with those robolectric APIs but not sure of any better ways anyway

@JakeWharton JakeWharton merged commit 7996633 into ReactiveX:2.x Feb 15, 2019
@ZacSweers
Copy link
Contributor

ZacSweers commented Feb 15, 2019 via email

Copy link

@AaronWashington AaronWashington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

io.reactivex.rxjava3:rxandroid:3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HandlerScheduler.scheduleDirect supports async option?
5 participants