-
I noticed that when running Micronaut tests, all transactions are rolled back (I imagine to avoid affecting the database). So far I found that there is a DefaultTestTransactionExecutionListener. I think somewhere here the autocommit gets disabled to avoid making changes in the database. I am not sure how to disabled it :( |
Beta Was this translation helpful? Give feedback.
Answered by
napsta32
Dec 13, 2024
Replies: 1 comment
-
Found it! In this PR: #2261 @MicronautTest(transactional = false)
class MyTest {} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
napsta32
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found it! In this PR: #2261
Basically you need to set: