-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Continuous testing classloading issue #19888
Comments
/cc @stuartwdouglas |
@stuartwdouglas this sounds similar to some issues you've resolved in the past. The problem with the test is triggered when trying to convert an object to JSON for a POST: https://github.com/jclingan/manning-kube-native-microservices/blob/master/chapter2/account-service/src/test/java/quarkus/accounts/AccountResourceTest.java#L69 |
/cc @jclingan |
@kenfinnigan is that a private repo? |
Sorry @stuartwdouglas, forgot about that! I've forked it and given you access to take a look: https://github.com/kenfinnigan/manning-kube-native-microservices |
Quick workaround for now is to add
I am not sure where databind is coming from atm, it is an optional restassured dep so it does not end up in the test class loader, but it is present in the augmentation class loader. |
The isolated test CL does not need to access anything from the dev CL, and it just causes leakage problems. Fixes quarkusio#19888
Awesome, thanks! |
Linked PR should resolve the issue. |
Confirmed the workaround works great! Thanks |
The isolated test CL does not need to access anything from the dev CL, and it just causes leakage problems. Fixes quarkusio#19888
Describe the bug
Resuming tests when running
mvn quarkus:dev
leads to following error:Expected behavior
Tests complete without exception
Actual behavior
No response
How to Reproduce?
https://github.com/jclingan/manning-kube-native-microservices/tree/master/chapter2/account-service is the project.
Run
mvn quarkus:dev
, then press "r" to resume testing.Output of
uname -a
orver
Darwin MacBook-Pro 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64
Output of
java -version
openjdk version "11.0.11" 2021-04-20
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.1.3.Final and 2.2.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Additional information
No response
The text was updated successfully, but these errors were encountered: