Closed jprinet closed 2 years ago
as per @mshima suggestion, overriding the datasource url with extra MODE=MySQL
in application-testdev.yml
fixes the issue but I'm not quite sure how to implement this in the generator.
Adding
url: jdbc:h2:mem:jhipstergradlesampleapplication;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=MySQL
at this line would work in my case but should that be retricted to h2InMemory?
Is there a plan to re-generate the jhipster-sample-app-gradle as the integration tests will keep failing until getting this fix?
The app is usually regenerated automatically on the next Release
Added to 7.9.4 milestone as a candidate for backporting.
Overview of the issue
I discovered some integration test failures on the latest commit of the jhipster-sample-app-gradle
Here is a build scan demonstrating the issue (JdbcSQLIntegrityConstraintViolationException)
Motivation for or Use Case
build failure
Reproduce the error
You can reproduce with
./gradlew clean test integrationTest -x webapp -x webapp_test
Suggest a Fix
Here is a build scan with H2 forced to 1.4.200 which fixes the issue.
The downgrade is not strictly required but this version makes the tests pass See this for details .
JHipster Version(s)
7.9.3
JHipster configuration
❯ jhipster info INFO! Using JHipster version installed globally Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
Browsers and Operating System
MacOs or Linux