Warmup connection pool in ConnectionPoolMetricsTests

Closes gh-36474
pull/37210/head
Stephane Nicoll 1 year ago
parent fd88024402
commit 747dbc35fe

@ -72,6 +72,7 @@ class ConnectionPoolMetricsTests {
ConnectionPoolMetrics metrics = new ConnectionPoolMetrics(connectionPool, "test-pool",
Tags.of(testTag, regionTag));
metrics.bindTo(registry);
connectionPool.warmup().as(StepVerifier::create).expectNext(3).expectComplete().verify(Duration.ofSeconds(30));
// acquire two connections
connectionPool.create()
.as(StepVerifier::create)

Loading…
Cancel
Save