mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 09:52:09 +01:00
Use postrgres when flagged in TrezorAddressTest (#4768)
* Use postrgres when flagged in TrezorAddressTest * Clean database on shutdown
This commit is contained in:
parent
bcddb015ae
commit
cad13182df
@ -220,7 +220,9 @@ class TrezorAddressTest extends BitcoinSWalletTest with EmptyFixture {
|
||||
private def testAccountType(purpose: HDPurpose): Future[Assertion] = {
|
||||
val confOverride = configForPurposeAndSeed(purpose)
|
||||
implicit val conf: WalletAppConfig =
|
||||
BitcoinSTestAppConfig.getNeutrinoTestConfig(confOverride).walletConf
|
||||
BitcoinSTestAppConfig
|
||||
.getNeutrinoWithEmbeddedDbTestConfig(() => pgUrl(), confOverride)
|
||||
.walletConf
|
||||
|
||||
val testVectors = purpose match {
|
||||
case HDPurposes.Legacy => legacyVectors
|
||||
@ -282,7 +284,10 @@ class TrezorAddressTest extends BitcoinSWalletTest with EmptyFixture {
|
||||
}
|
||||
|
||||
assertionsF.flatMap { _ =>
|
||||
conf.stop().map(_ => succeed)
|
||||
for {
|
||||
_ <- conf.dropAll()
|
||||
_ = conf.clean()
|
||||
} yield succeed
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user