@Transactional doesn't seem to work when using Coroutines.
$ docker compose up
$ ./gradlew run
Run the failing test:
./gradlew test -i
Send a post request to /suspend
:
$ curl -X POST -d '{"id":"C3076DE3-4678-4B6A-A977-15F35607B7C7"}' http://localhost:8080/suspend -s -S -v -H "Content-Type: ap
plication/json"
Expected: Duplicate key value exception occurs, and no rows should be created in the database.
Actual: One row is still created in the database.