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

Coroutine 1.6 Tests Issue #599

Open
jairrab opened this issue Jan 3, 2022 · 1 comment
Open

Coroutine 1.6 Tests Issue #599

jairrab opened this issue Jan 3, 2022 · 1 comment

Comments

@jairrab
Copy link

jairrab commented Jan 3, 2022

Updating to coroutine 1.6 causes existing tests that needs viewmodel functions (e.g. selectSubscribe) to return immediately now fails. Here's the link to 1.6 blog:

https://blog.jetbrains.com/kotlin/2021/12/introducing-kotlinx-coroutines-1-6-0/

@gpeal
Copy link
Collaborator

gpeal commented Jan 3, 2022

For now, if you are using the test rule, use it like this:

MvRxTestRule(testDispatcher = UnconfinedTestDispatcher()) 

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

No branches or pull requests

2 participants