Properly subscribe to CloseableConnectionFactory#close
Closes gh-25565
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user