-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Bug: Verifications fail with Missing calls inside verify { ... } block when ran on CLI but pass in IDE #259
Comments
Thanks for the report. Will check |
Spent some time on this issue. Instrumention is OK. Turned off parallel testing , but that did not help. In trace logs call doesn't get intercepted. Probably something related to class loading. Will spend more time on weekends |
Can this be related to Surefire 2.22.1? |
Very probable, as JUnit 4.12 is widely used and no other things to interact with. ByteBuddy seems to be working as one test passing and transformed classes are OK |
Seems problem appears when building with 2.19 and above Surefire plugin. |
I experimented a lot with this error. Turned on debugging, double-checked all the maps inside of mockk, e.t.c. Nothing too suspicious. Looks like not always instrumentation take place at the moment it is requested, maybe not for all threads at a time, or maybe there is a race condition in mockk code. Actually I am starting to understand it better, but let's see. The problem now is to reproduce it without surefire. Currently, all my achievement in reproduction and differentiation is that I know if I put |
@mp911de please try the same test with version |
Thanks a lot. The fix addressed the issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you are sure that this issue is important and should not be marked as |
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
Verification is properly evaluated.
Current Behavior
The test fails with:
Missing calls inside verify { ... } block
Failure Information (for bugs)
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
CriteriaExtensionsUnitTests
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Stack trace
Minimal reproducible code (the gist of this issue)
See also: https://github.com/spring-projects/spring-data-cassandra/blob/master/spring-data-cassandra/src/test/kotlin/org/springframework/data/cassandra/core/query/CriteriaExtensionsUnitTests.kt#L75-L81
The text was updated successfully, but these errors were encountered: