parent
410555a1b6
commit
476b7087a7
|
@ -114,13 +114,13 @@ public class DataSourcePoolMetricsAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void failureToInstrumentHikariDataSourceIsTolerated() {
|
||||
public void hikariCanBeInstrumentedAfterThePoolHasBeenSealed() {
|
||||
this.contextRunner.withUserConfiguration(HikariSealingConfiguration.class)
|
||||
.run((context) -> {
|
||||
assertThat(context).hasNotFailed();
|
||||
context.getBean(DataSource.class).getConnection();
|
||||
MeterRegistry registry = context.getBean(MeterRegistry.class);
|
||||
assertThat(registry.find("hikaricp.connections").meter()).isNull();
|
||||
assertThat(registry.find("hikaricp.connections").meter()).isNotNull();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
<hazelcast-hibernate5.version>1.2.3</hazelcast-hibernate5.version>
|
||||
<hibernate.version>5.2.13.Final</hibernate.version>
|
||||
<hibernate-validator.version>6.0.7.Final</hibernate-validator.version>
|
||||
<hikaricp.version>2.7.7</hikaricp.version>
|
||||
<hikaricp.version>2.7.8</hikaricp.version>
|
||||
<hsqldb.version>2.4.0</hsqldb.version>
|
||||
<htmlunit.version>2.29</htmlunit.version>
|
||||
<httpasyncclient.version>4.1.3</httpasyncclient.version>
|
||||
|
|
Loading…
Reference in New Issue