We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e8dd34 commit 6ec9026Copy full SHA for 6ec9026
src/test/scala/com/twitter/finagle/postgres/integration/IntegrationSpec.scala
@@ -429,8 +429,12 @@ class IntegrationSpec extends Spec {
429
}
430
"client is bad" in {
431
val badClient: PostgresClient = getBadClient
432
- badClient.isAvailable must equal(false)
433
- Set(Status.Busy, Status.Closed) must contain (badClient.status)
+ try {
+ badClient.isAvailable must equal(false)
434
+ Set(Status.Busy, Status.Closed) must contain (badClient.status)
435
+ } finally {
436
+ badClient.close()
437
+ }
438
439
"client is closed" in {
440
val client: PostgresClient = getClient
0 commit comments