-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
1.7.0-Beta: NoSuchMethodError: void kotlinx.coroutines.test.TestBuildersKt.runTest$default(kotlinx.coroutines.test.TestScope, long, kotlin.jvm.functions.Function2, int, java.lang.Object) #3673
Comments
@qwwdfsad I'm still getting this error after updating to 1.7-RC:
The line it is failing on in
Is the issue that the defaults are missing? What's odd is that in the IDE navigating to that
|
I am also still seeing this crash in the main |
In
|
Yeah, that's completely on me, I see what went wrong: the overload that I re-introduced accepts a Long and an Integer in Java terms, but should instead accept a long and an int. Process-wise, since the RC release contained the (incorrect) fix already, we would expect that someone would mention to us that the fix didn't fix anything. That's what RC releases are for. Not sure what we could have done differently with the process. |
Since @geranzo's stacktrace is slightly different, I'll comment that we're still seeing the originally reported one in the stable release of coroutines 1.7.0 against androidx.compose.ui:ui-test-junit4:1.4.0
|
Probably an issue with my setup, but I rely on Renovate to let me know when there are updates. For some reason it didn't let me know about the RC. |
After updating to 1.7.0 I also face this problem in my Robolectric tests:
Code here: https://github.com/sebaslogen/resaca/tree/uptade-coroutines-1.7.0 CI results here: https://github.com/sebaslogen/resaca/actions/runs/4907443414/jobs/8762549032 |
As a workaround, could you try to roll back just |
This workaround didn't work for me, even after clean+rebuild in Android Studio 😞 FYI I updated
|
This reverts commit c1b5ce0. Blocked by Kotlin/kotlinx.coroutines#3673
Follow-up to #3742. That implementation there did work around issue #3673, but did not restore full binary compatibility: the wrong value of `dispatchTimeoutMs` was passed. Given how `runTest` was used in the problematic library, it should not be a problem, but just to be safe and establish the same behavior even in the deep corner cases, we restore the original implementation fully.
Describe the bug
When updating a project to use
kotlinx.coroutines
1.7.0-Beta
, existing tests fail with aNoSuchMethodError
for arunTest
that's being called internally by the Compose test utilities.The full stack trace looks like the following (but fail for every Compose test):
Provide a Reproducer
Reproducing PR: alexvanyo/composelife#838
It looks like the update to
runTest
in1.7.0-Beta
might not have been binary compatible?The text was updated successfully, but these errors were encountered: