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

ExceptionInInitializerError In Unit test after update to 0.30.1 #658

Closed
kirich1409 opened this issue Oct 3, 2018 · 0 comments
Closed

ExceptionInInitializerError In Unit test after update to 0.30.1 #658

kirich1409 opened this issue Oct 3, 2018 · 0 comments
Assignees
Labels

Comments

@kirich1409
Copy link

After update to 0.30.1 I can't run Unit tests because Dispatchers try to initialize Dipsatchers.Main on first access and kotlinx-coroutines-android try to instanciate HandlerDispatcher that can't be done because Handler and Looper don't work on stub Android SDK.
For Unit tests I replace all CoroutineContext with TestCoroutineContext, that's why it something in library try to access to kotlinx.coroutines.experimental.Dispatchers.

How I can replace Dipsatchers.Main for unit tests or any other solutions for run my Unit test with 0.30.1?

@elizarov elizarov added the bug label Oct 3, 2018
elizarov added a commit that referenced this issue Oct 6, 2018
Also specified explicit public visibility for Dispatchers object.

Fixes #658
Fixes #665
qwwdfsad pushed a commit that referenced this issue Oct 8, 2018
Also specified explicit public visibility for Dispatchers object.

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

No branches or pull requests

3 participants