mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-13 11:35:40 +01:00
Don't wrap pg.close() in a Try and then do nothing with it, propogate the exception (#2972)
This commit is contained in:
parent
db45ef9ca2
commit
3483a461f1
1 changed files with 1 additions and 3 deletions
|
@ -3,8 +3,6 @@ package org.bitcoins.testkit
|
|||
import com.opentable.db.postgres.embedded.EmbeddedPostgres
|
||||
import org.scalatest.{BeforeAndAfterAll, Suite}
|
||||
|
||||
import scala.util.Try
|
||||
|
||||
trait EmbeddedPg extends BeforeAndAfterAll { this: Suite =>
|
||||
|
||||
lazy val pgEnabled: Boolean = sys.env.contains("PG_ENABLED")
|
||||
|
@ -17,7 +15,7 @@ trait EmbeddedPg extends BeforeAndAfterAll { this: Suite =>
|
|||
|
||||
override def afterAll(): Unit = {
|
||||
super.afterAll()
|
||||
Try(pg.foreach(_.close()))
|
||||
val _ = pg.foreach(_.close())
|
||||
()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue