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 class JdbcConnectionEventTests {
|
|||
// 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…
Reference in New Issue