Skip to content

ExceptionInInitializerError In Unit test after update to 0.30.1 #658

Closed
@kirich1409

Description

@kirich1409

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions