Properly subscribe to CloseableConnectionFactory#close

Closes gh-25565
pull/25731/head
Stephane Nicoll 4 years ago
parent c8101f8c9b
commit f38e863fbc

@ -59,7 +59,7 @@ class ConnectionPoolMetricsTests {
@AfterEach
void close() {
if (this.connectionFactory != null) {
this.connectionFactory.close();
StepVerifier.create(this.connectionFactory.close()).verifyComplete();
}
}

@ -59,7 +59,7 @@ class ConnectionFactoryHealthIndicatorTests {
}).verifyComplete();
}
finally {
connectionFactory.close();
StepVerifier.create(connectionFactory.close()).verifyComplete();
}
}
@ -110,7 +110,7 @@ class ConnectionFactoryHealthIndicatorTests {
}).verifyComplete();
}
finally {
connectionFactory.close();
StepVerifier.create(connectionFactory.close()).verifyComplete();
}
}
@ -130,7 +130,7 @@ class ConnectionFactoryHealthIndicatorTests {
}).verifyComplete();
}
finally {
connectionFactory.close();
StepVerifier.create(connectionFactory.close()).verifyComplete();
}
}

Loading…
Cancel
Save