We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b744269 commit 45cb034Copy full SHA for 45cb034
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