-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove usage of MainDispatcherRule in PagingDataDifferTest #562
Remove usage of MainDispatcherRule in PagingDataDifferTest #562
Conversation
|
pagingSourceFactory = { | ||
TestPagingSource( | ||
loadDelay = 1000, | ||
loadContext = coroutineContext, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we no longer need to set loadContext
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooo nice, just removed it in the latest commit!
5e44def
to
00f6b6b
Compare
Hi @veyndan there are merge conflicts on this PR, probably because I had just merged in the other PRs. Can you please try rebasing this? |
00f6b6b
to
1f5051a
Compare
Rebased! |
Opted to just pass in an
EmptyCoroutineContext
toPagingDataDiffer
instead of inliningMainDispathcherRule
, as it's clearer to follow. The removal ofloadDispatcher
was necessary for this to pass. I didn't trace why this had to be removed, but imo it makes the tests easier to read.Test: ./gradlew test connectedCheck
Bug: 270612487