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

Version 1.10.x Dispatchers issue #4397

Open
mkowol-n opened this issue Mar 26, 2025 · 1 comment
Open

Version 1.10.x Dispatchers issue #4397

mkowol-n opened this issue Mar 26, 2025 · 1 comment

Comments

@mkowol-n
Copy link

After bumping the library version to 1.10.1 and running my unit tests i'm getting an error:
Dispatchers.Main was accessed when the platform dispatcher was absent and the test dispatcher was unset. Please make sure that Dispatchers.setMain() is called before accessing Dispatchers.Main and that Dispatchers.Main is not accessed after Dispatchers.resetMain().
java.lang.IllegalStateException: Dispatchers.Main was accessed when the platform dispatcher was absent and the test dispatcher was unset. Please make sure that Dispatchers.setMain() is called before accessing Dispatchers.Main and that Dispatchers.Main is not accessed after Dispatchers.resetMain().

Once i downgrade the version to 1.9.0 everything works just fine.

Setting Dispatcher in @before annotation does not change anything.

@mkowol-n mkowol-n added the bug label Mar 26, 2025
@dkhalanskyjb
Copy link
Collaborator

Can't reproduce: setMain works without issues for me. Could you provide a project where you encounter this issue?

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

No branches or pull requests

2 participants