Sorry for the late PR!
Added some tests to test the isolation level of SpringTransactionManager.
Write test code in SpringTransactionSingleConnectionTest to check if the issue that when there is only one connection, the connection cannot be obtained unless the default isolation level is set is fixed in the latest version.
Add test code to check if the isolation level is set well in the existing test
Discussion
I have confirmed that the problem encountered in this issue is resolved in the current version. I wonder if additional isolation tests are needed?
The readOnly test was tested with a spy test to make sure the value is set correctly. Unfortunately, H2 does not seem to support readOnly properly, so I was unable to test it.
Sorry for the late PR! Added some tests to test the isolation level of SpringTransactionManager.
Write test code in
SpringTransactionSingleConnectionTest
to check if the issue that when there is only one connection, the connection cannot be obtained unless the default isolation level is set is fixed in the latest version.Add test code to check if the isolation level is set well in the existing test
Discussion
I have confirmed that the problem encountered in this issue is resolved in the current version. I wonder if additional isolation tests are needed?
The
readOnly
test was tested with a spy test to make sure the value is set correctly. Unfortunately, H2 does not seem to support readOnly properly, so I was unable to test it.May spring test also need to test real database