HHH-14867 Forcefully acquire a JDBC connection in a JFR test

This commit is contained in:
Christian Beikov 2024-02-22 14:08:47 +01:00
parent 8a65536c4c
commit 2c8665029d

View File

@ -31,6 +31,8 @@ public void testJdbcConnectionAcquisition(SessionFactoryScope scope) {
// starting a transaction should trigger the acquisition of the connection
String expectedSessionId = scope.fromTransaction(
session -> {
// Force connection acquisition
session.getJdbcCoordinator().getLogicalConnection().getPhysicalConnection();
final List<RecordedEvent> events = jfrEvents.events()
.filter(
recordedEvent ->