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 unit tests failing after upgrading kotlin to 1.8.10 #3821

Closed
ankitrapido opened this issue Jul 24, 2023 · 1 comment
Closed

Coroutine unit tests failing after upgrading kotlin to 1.8.10 #3821

ankitrapido opened this issue Jul 24, 2023 · 1 comment
Labels

Comments

@ankitrapido
Copy link

ankitrapido commented Jul 24, 2023

Describe the bug

On Kotlin-1.6.10 everything was working fine
but after I upgraded to Kotlin-1.8.10 tests started failing randomly with below exception
ut version - org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.2

kotlinx.coroutines.test.UncaughtExceptionsBeforeTest

Provide a Reproducer

Create a project with kotlin 1.6.10 and test version 1.6.4
upgrade to kotlin 1.8.10
tests started failing

@dkhalanskyjb dkhalanskyjb added test and removed bug labels Jul 24, 2023
@dkhalanskyjb
Copy link
Collaborator

It means that your tests throw exceptions after they finish, in forked-off coroutines. We used not to catch such exceptions, but now we do, so that the tests are more robust. See the discussion under #1205 This functionality can be disabled with #3736 (comment), but it's recommended to fix the tests instead.

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

2 participants