mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 08:05:05 +00:00
HHH-14867 Forcefully acquire a JDBC connection in a JFR test
This commit is contained in:
parent
8a65536c4c
commit
2c8665029d
@ -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 ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user