org.hibernate.TransactionException: transaction timeout expired

org.hibernate.TransactionException: transaction timeout expired. I am getting while running all my test cases which is about 400. It is able to run for some tests but for 130 I am getting the error org.hibernate.TransactionException: transaction timeout expired, but when I run that specific test which has the same error then it passes. any suggestion would be welcome :slight_smile:

the error message is:
org.hibernate.TransactionException: transaction timeout expired
at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.determineRemainingTransactionTimeOutPeriod(JdbcCoordinatorImpl.java:271)

there is some modification in question as it runs all the tests when connected to the local db and creating issue on jenkins when run as a gradle project only. It will not create issue when run as ant project.
some research as I run it in in test test suits in different task test then all the tests are passing.