mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-26 01:29:20 +01:00
Have EmbeddedPg check PG_ENABLED value (#4791)
This commit is contained in:
parent
193922c9c5
commit
c0443a972d
1 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,10 @@ trait EmbeddedPg extends BeforeAndAfterAll { this: Suite =>
|
|||
|
||||
lazy val pgEnabled: Boolean = {
|
||||
val config = ConfigFactory.load()
|
||||
val isEnv = sys.env.contains("PG_ENABLED")
|
||||
val isEnv = sys.env
|
||||
.get("PG_ENABLED")
|
||||
.exists(s => s.equalsIgnoreCase("true") || s == "1")
|
||||
|
||||
val isConfig = {
|
||||
if (config.hasPath("bitcoin-s.testkit.pg.enabled")) {
|
||||
config.getBoolean("bitcoin-s.testkit.pg.enabled")
|
||||
|
|
Loading…
Add table
Reference in a new issue